Home  >  Article  >  Backend Development  >  Zend Framework里怎么取得当前action名

Zend Framework里怎么取得当前action名

WBOY
WBOYOriginal
2016-06-13 13:48:431057browse

Zend Framework里如何取得当前action名?
用Zend Framework开发个小项目,现在需要根据当前action名来处理些变量,请问如何获取当前模块和操作名.

------解决方案--------------------
不知道你每个controller是不是继承 Zend_Controller_Action
如果是parent::getFrontController()->getRequest()->getParams();这样应该行吧

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn