3

How I can send all request in zend project to my default module controller (without use .access files).

Now it going to application->IndexController, Instead I need that every request will go to application->module->store->IndexController.

I try this:

public function indexAction()
{
       $this->_forward('index','index','store');
}

Its works, but url in web browser http://localhost/mystore/public/ not change to http://localhost/mystore/public/store/

Thanks,

Yosef

Charles
  • 50,943
  • 13
  • 104
  • 142
Ben
  • 25,389
  • 34
  • 109
  • 165

1 Answers1

1

Try this:

public function indexAction()
{
    $this->_redirect('index','index','store');
}

Looking forward, probably the controller plugin handling automatically all the redirects will be better.

takeshin
  • 49,108
  • 32
  • 120
  • 164