I am working with CakePHP. I want to create subfolder for admin in controller folder for all admin controllers. I have tried Prefix Routing
method for this, but it dint work for folders.
I have tried using this: https://github.com/ichikaway/AutoAppBuild, it worked but only for the controller which i have mentioned in routes file.
I want to do something like this:
http://my_site.com/ -----> for frontend
http://my_site.com/admin -----> for admin .
I created a subdirectory under "controllers" dir and added following line to routes.php
$Route->connect('/admin/*', array('controller' => 'admin/dashboard', 'action' => 'display'));
Of course, it doesn't work. Cakephp is confused about the directory and class name.
Can anyone please help me out?
Thanks.