Free To Feel

Heading to entrepreneur.

Joshua Chi

CakePHP admin routing fail

If your router wirte like this

Router::connect('/:controller/:action/*', array('controller' => 'projects', 'action' => 'index'));

Then when you call http://{cakeroot}/admin/{controller}/{action}, it will fail with error:

Please create AdminControoler.

But It is OK when you change the router to

Router::connect('/:controller/:action', array('controller' => 'projects', 'action' => 'index'));
comments powered by Disqus