(Yaf >=1.0.0)
Yaf_View_Simple::__set — Set value to engine
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");
}
}
?>
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant