In Zend I am trying to get value for a parameter named "controller" but it returns the name of the controller itself instead of the value of the parameter. when I try to access the parameter from within the controller using following code. It gives me the name of the controller instead of the value of the parameter.
$this->getParam('controller')//returns controller name
尝试这个 :
$this->getRequest()->getParam('controller');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.