Zend Routing :: How can I send all requests coming to the application-> IndexController to the application-> module-> store-> IndexController

How can I send the entire request in the zend project to my default module controller (without using .access files).

Now it will be application-> IndexController . Instead, I need each request to go to application-> module-> store-> IndexController .

I try this:

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

Its working, but the URL in the web browser http: // localhost / mystore / public / does not change to http: // localhost / mystore / public / store /

Thank,

Yosef

+3
1

:

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

, , .

+1

Source: https://habr.com/ru/post/1749565/


All Articles