简体   繁体   中英

Zend framework 2 call action from other action of the same controller

Is it possible in ZF2 to call an action from another action of the same controller? If yes, how can this be done?

Depending on what exactly you want to achieve, you can use the forward controller plugin.

http://framework.zend.com/manual/2.2/en/modules/zend.mvc.plugins.html

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