简体   繁体   中英

How to get value of a parameter named “controller” in zend?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM