Does anybody have examples of setting up the routes.php table when using plugins and prefix routing in CakePHP
e.g.
A shops controller, using the manage prefix to access certain management functions for the seller.
So /manage/shops/edit maps to manage_edit in shops_controller.php
and then placing this in /plugins/shops
In your
core.phpthere is a configuration value called:Routing.prefixesyou need to set the manage prefix there:Configure::write('Routing.prefixes', array('admin', 'manage'));Now all calls to URLs like /manage/controllerName/actionName will go to:
controllerName::manage_actionNameand all calls to URLs like /admin/controllerName/actionName will go to:
controllerName::admin_actionNameFor plugin routing in the
routes.phpfile:This is all that is needed.