开发者

can i remove the action's script restriction in Zend Framework?

开发者 https://www.devze.com 2023-02-18 19:43 出处:网络
i\'m working in a project and i\'m using Zend, but there is something i don\'t like, i n开发者_如何学Ceed to have a phtml file, with the same name of the action, in a folder with the same name of the

i'm working in a project and i'm using Zend, but there is something i don't like, i n开发者_如何学Ceed to have a phtml file, with the same name of the action, in a folder with the same name of the controler, if i don't, Zend will throw an exception, i would like to choose the location myself, cuz i have to make a bunch of folder in my modules, maybe somthing more simple, but i don't know if it is possible, maybe zend is strict with this.

thanks


If you need an "individual view script" for an Action you can use:

$this->renderScript('path/to/myviewscript.phtml');
0

精彩评论

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

关注公众号