Assigns variables to the view script via differing strategies.
This method is overloaded; you can assign all the properties of an object, an associative array, or a single value by name.
You are not allowed to set variables that begin with an underscore; these are either private properties for KView or private variables within the template script itself.
// assign directly
$view->var1 = 'something';
$view->var2 = 'else';
// assign by name and value
$view->assign('var1', 'something');
$view->assign('var2', 'else');
// assign by assoc-array
$ary = array('var1' => 'something', 'var2' => 'else');
// assign by object
$obj = new stdClass;
$obj->var1 = 'something';
$obj->var2 = 'else';
Tags:
Supports a simple form of Fluent Interfaces. Allows you to assign variables to the view by using the variable name as the method name. If the method name is a setter method the setter will be called instead.
For example : $view->layout('foo')->title('name')->display().
Tags:
Overrides
KObject::__call() (Search the mixin method map and call the method or trigger an error)
Parameters: