JViewLegacy::assignRef
Assign variable for the view (by reference).
You are not allowed to set variables that begin with an underscore; these are either private properties for JView or private variables within the template script itself. <code> $view = new JView; // Assign by name and value $view->assignRef('var1', $ref); // Assign directly $view->ref = &$var1; </code>
Signature
public function assignRef(string
$key,
&
$valĀ )
Parameters
-
$key
- The name for the reference in the view.
-
$val
Returns
- boolean
- True on success, false on failure.