开发者

Zend Framework :: extending action variable scope for partials

开发者 https://www.devze.com 2022-12-24 03:20 出处:网络
I want to know if there exist any other way through which we can access the controller name, action name and other variables inside a partial. In other words, I want to extend the scope of my action v

I want to know if there exist any other way through which we can access the controller name, action name and other variables inside a partial. In other words, I want to extend the scope of my action variable to be accessed inside the partial templates rather than passing the lot along with the call to partial temp开发者_JAVA百科late.

Thanks -DevD.


You could extend your controllers to setup your necessary variables in the $view. http://framework.zend.com/manual/en/zend.controller.action.html

A controller plugin would be able to do the same. http://framework.zend.com/manual/en/zend.controller.plugins.html

0

精彩评论

暂无评论...
验证码 换一张
取 消