how can i render phtml file inside ( a class inside library 'Not Controller' ) in Zend Frmework
and how i can pass parameter to it I have this error:
Call to a member function render()
Thanks a lot
This should work.
$view = new Zend_View();
$view->setScriptPath('../application/views/scripts');
$view->param1 = 'TEST';
$view->render('xyz.phtml');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.