Cakephp - one variable accessible in view and controller -
i want define array can use in appcontroller , default layout. how in cakephp?
$this->set('arr', array('one', 'two')); // accessible in controller $this->viewvars['arr']; // accessible in view/layout echo $arr;
Comments
Post a Comment