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>