(Yaf >=1.0.0)
Yaf_View_Simple::__set — Set value to engine
public Yaf_View_Simple::__set ( string $name , mixed $value ) : void
This is a alternative and easier way to Yaf_View_Simple::assign().
name
A string value name.
value
Mixed value.
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"); } ?>
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/yaf-view-simple.set.php