Plugins and Routes

By Andy, filed under CakePHP, Tips, Plugins, Routes

Routes are a great feature, but if you try using them with Plugins you might find that you start pulling your hair out. Fear not however, there's always a solution and it's usually not that difficult. If you use routes of the form below, you can map directly to a plugin's page:

$Route->connect('/Something/*', array('controller' => 

'PluginName', 'action' => 'ControllerName',...
  1. $Route->connect('/Something/*', array('controller' =>
  2. 'PluginName', 'action' => 'ControllerName',...

read more0 comments

    «  »