Yaf_View_Simple::__set
(Yaf >=1.0.0)
Yaf_View_Simple::__set — Set value to engine
Descrição
This is a alternative and easier way to Yaf_View_Simple::assign().
Parâmetros
name
-
A string value name.
value
-
Mixed value.
Valor Retornado
Exemplos
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");
}
}
?>
Veja Também
- Yaf_View_Simple::assignRef() - The assignRef purpose
- Yaf_View_Interface::assign() - Assign value to View engine