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

1 Answer 1


This works for me:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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