yiimann
(Contact)
1
I’m trying to set the modules in init of the basecontroller instead of main.php but I still get a 404 error when I try to access the module.
Yii::app()->setModules(array(
'mymodule1',
'mymodule2',
));
Any idea how I can do that ?
tri
(tri - Tommy Riboe)
2
The basecontroller is too late in the process. I think you can use the onBeginRequest event.
Read more here.
/Tommy
yiimann
(Contact)
3
Thanks. How can I catch this CApplication event ?