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

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -