Is there any assign method to the CControler?
I know now only one way to assign variable to the View and it’s:
$this->render('index', array('a'=>'some stuff...');
I ended creating my own methods in the Controler named "assign" and "getAssign"
public function assign($key, $value){
$this->params[$key] = $value;
}
public function getAssign(){
return $this->params;
}
And than i can do
$this->render('index', parent::getAssign());
But this is some very basic stuff… in ZEND for example you have the magic set I think…
Here
$this->someParam = 3;
trigger an error…
Help please…
Don’t want to invent the wheel