Welcome Guest, Not a member yet? Register   Sign In
Custom Admin Directory
#1

[eluser]Unknown[/eluser]
Hi All

In Cake PHP you can set an "admin" directory. When you do this, if you place a piece of code in your controller, that will then point the router to /admin/controller/action, rather than /controller/action.

This obviously makes routing a lot faster, and the code is seperated more logically, as you follow the models more closely.

I was wondering if anyone had made a library which allowed this to happen?

Thanks
Michael
#2

[eluser]xwero[/eluser]
If you just put your controllers into the subdirectory controllers/admin you don't need routing.
#3

[eluser]Unknown[/eluser]
Very nice, I will give this a try. Thanks




Theme © iAndrew 2016 - Forum software by © MyBB