Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何在 Zend Frmework 中渲染 phtml 文件(库中的一个类“非控制器”)
以及如何将参数传递给它我有这个错误:
调用成员函数 render()
非常感谢
这应该有效。
$view = new Zend_View(); $view->setScriptPath('../application/views/scripts'); $view->param1 = 'TEST'; $view->render('xyz.phtml');