Yaf_View_Simple
PHP Manual

Yaf_View_Simple::__set

(PECL yaf >=1.0.0)

Yaf_View_Simple::__setSet value to engine

Description

public void Yaf_View_Simple::__set ( string $name , mixed $value )

This is a easier way to instead of Yaf_View_Simple::assign().

Warning

This function is currently not documented; only its argument list is available.

Parameters

name

A string value name.

value

Mixed value.

Return Values

Examples

Example #1 Yaf_View_Simple::__set()example

<?php
class IndexController extends Yaf_Controller_Abstract {
    public function 
indexAction() {
        
$this->getView()->foo "bar"// same as assign("foo", "bar");
    
}
?>

See Also


Yaf_View_Simple
PHP Manual