I have a plugin named Manager. I want to map route on /login to the index action of Dashboard Controller on plugin. Something like this:
Router::connect('/login', array('controller' => 'dashboard', 'action' => 'index', 'plugin => 'manager'));
How can I achieve this on Cakephp 2.2?
thanks
Once a plugin has been installed in
/app/Plugin, you can access it at the URL/plugin_name/controller_name/action. In your Manager plugin example, you'd access DashboardController at/manager/dashboard.Have you tries using Plugin Syntax, like:
Using the
'plugin'key in the$optionsarray should also do the job: