- 7.2. Opt_View class
7.2.4. __set() - 7.2.3. __isset()
« Previous - 7.2.5. __unset()
Next »
7.2.4. __set()
| Construct | Magic method |
|---|---|
| Visibility | public |
| Reference | mixed __set(string $name, mixed $value) |
This magic method provides an alternative way to create template local variables:
$view->variable = 'Some value';
It is recommended to use the magic method instead of Opt_View::assign() unless we are not going to specify a dynamic variable name.
See also:
- 7.2.4. __set()
7.2. Opt_View class - « Previous
7.2.3. __isset() - Next »
7.2.5. __unset()