how can I override default root URL behavior via routes? I did following but not working:

'pluginname/' => array('action' => 'pluginName/Controller/actionName');

my template file name is index


This works for me:

public function registerCpRoutes()
    return array(
        'settings/plugins/pluginname/index' => 'pluginname/index'
  • do I need to add settings anyway? – Volatil3 Oct 27 '15 at 7:51
  • You don't have to have settings. – aran Oct 28 '15 at 0:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.