setModules at start

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.





Any idea how I can do that ?

The basecontroller is too late in the process. I think you can use the onBeginRequest event.

Read more here.


Thanks. How can I catch this CApplication event ?