I created a route which is analog to this one:
Router::connect("/backend/:controller/:action/*");
And now I want to route every controller that fits this pattern to be renamed to something like backend_:controller.
Somehow like that:
Router::connect("/backend/:controller/:action/*", array('controller' => 'backend_:controller'));
Example: If the URL www.example.com/backend/settings/myaction is called, it would route to the controller "backend_settings" and invoke the action "myaction"!
But on the other hand, if some called www.example.com/settings, it would route to the controller "settings".
The URL is supposed to stay the way it was called, cakePHP should only use a modified controller name!
I hope someone can point me to the best solution I am supposed to use for this problem. Thanks in advance!