admin-routing

CakePHP and admin routing with a 'catch all' action.

I'm trying to build a mini cms, whereby all urls go to the index action of a 'products' controller. The products_controller checks the url and treats it as a parameter, so '/widgets' would hit the index($url) function and pass 'widgets' to be the $url param. I then do a lookup like this checking a field called url: $product= $this->Pr...

How do I secure all the admin actions in all controllers in cakePHP

Hello Everyone, I am developing an application using cakePHP v 1.3 on windows (XAMPP). Most of the controllers are baked with the admin routing enabled. I want to secure the admin actions of every controller with a login page. How can I do this without repeating much ? One solution to the problem is that "I check for login information ...