I have following redirect script in my controller (Zend Framework 2)
return $this->redirect()->toRoute('default', array(
'controller' => 'admin',
'action' => 'index'
));
Currently redirecting to localhost/zf2/public/admin/index
How can I redirect with an extra parameter?
Like:
localhost/zf2/public/admin/index/update/1
or localhost/zf2/public/admin/index/page/2
I have tried this :
return $this->redirect()->toRoute('default', array(
'controller' => 'admin',
'action' => 'index'
'param' => 'updated/1'
));
But is redirected to localhost/ttacounting/public/admin/index/updated%2F1