php - Zend Framework 2 (ZF2) - $this->url()->toRoute() -


the function return $ this-> redirect() ->toroute('home'); redirect home page. function return $ this-> redirect() ->toroute('home', array('controller' => 'index', 'action' => 'hello')); must redirect @ homepage/index/hello redirection juste homepage.

'type' => 'segment',                 'options' => array(                     'route' => '[/:controller][/:action][/:id]' 

what error ?

tks

have defined index controller , hello action default? not displayed in url right page shown.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -