PHPEye开源社区 » Zend Framework 使用讨论 » phtml和Action的问题
《Programming PHP》第二版上市
2008-6-5 15:15 c61811
phtml和Action的问题

请问高手们,难道有Action就一定要有对应的phtml页面吗?有没有什么好的方法可以不需要phtml页面呢?

谢谢了!

2008-6-7 23:54 西安phper
完美回答

当然不是这么死板了。当
$fc->setParam('noViewRenderer', true); 时,就可以不要 phtml 页面了啊。没有该语句,表示默认应该有,即:$fc->setParam('noViewRenderer', false); //false 是默认值

页: [1]
查看完整版本: phtml和Action的问题


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.