dimis283
(Dimis283)
1
I am creating a site with Yii and I want for the frontend (the site controler) to chage the layout but for all actions.I made this code
function _construct()
{
$this->layout="site";
}
but is did not work, how can I change the layout for all the actions?
will
(Phpwindcn)
2
this article may be helpful to you, http://www.yiiframew…oc/cookbook/28/
qiang
(Qiang Xue)
3
class MyController extends CController
{
public $layout='site';
}