开发者

Zend Framework :: extending action variable scope for partials

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜