开发者

Zend Framework - How can I use the same view script with different actions in the controller?

My question basically is that I have lot of routes set up for开发者_Go百科 CRUD operations. So inside the controller there are different action for Insert, Update, Delete and Select. For the Insert, Update and Delete I would like to use the same view script. Is that possible?


You simply set the view script name using the ViewRenderer action helper. For example

$this->_helper->viewRenderer('action');

Edit: If the view script is part of a different controller, see ZEND, rendering different view with data

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜