7.2. Opt_View class
7.2.5. __unset()
7.2.4. __set()
« Previous
7.2.6. assign()
Next »

7.2.5. __unset()

ConstructMagic method
Visibilitypublic
Referencevoid __unset(string $name)
Versionssince 2.0-beta2

This magic method provides an alternative way to remove a template local variable:

unset($view->variable);

It is recommended to use the magic method instead of Opt_View::remove() unless we are not going to specify a dynamic variable name.

See also:

7.2.5. __unset()
7.2. Opt_View class
« Previous
7.2.4. __set()
Next »
7.2.6. assign()