Retrieving parameters passed with zend php _forward

Simple question. I am using the _forward function in the Zend Php Framework.

$ this → _ forward ('formview', null, null, array ('test' => 'penu'));

So, Im forwards the formview with the same controller with the parameter test = 'penu'

However, how to get this value when I am in the action to which I am redirected.

+3
source share
2 answers
$test=$this->getRequest()->getParam('test');
+8
source

Or $ this → _ getParam ('test')

+3
source

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


All Articles