This is my function public function indexAction() {
$this->view->render('C:/wamp/www/77workshop/application/modules/cp/views/default/login/index.phtml'); } And i get the following error: <br /> <b>Fatal error</b>: Uncaught exception 'Zend_View_Exception' with message 'script 'login.phtml' not found in path (C:\wamp\www\77workshop\application\modules\cp\views\default\layouts\;C:\wamp\www\77workshop\application\modules\cp\views\default\layouts\;C:\wamp\www\77workshop\application\modules\cp\views\default\)' in C:\wamp\www\77workshop\library\Zend\View\Abstract.php:925 Stack trace: #0 C:\wamp\www\77workshop\library\Zend\View\Abstract.php(828): Zend_View_Abstract->_script('login.phtml') #1 C:\wamp\www\77workshop\library\Zend\Layout.php(787): Zend_View_Abstract->render('login.phtml') #2 C:\wamp\www\77workshop\library\Zend\Layout\Controller\Plugin\Layout.php(142): Zend_Layout->render() #3 C:\wamp\www\77workshop\library\Zend\Controller\Plugin\Broker.php(330): Zend_Layout_Controller_Plugin_Layout->postDispatch(Object(Zend_Controller_Request_Http)) #4 C:\wamp\www\77workshop\library\Zend\Controller\Front.php(947): Zend_Controller_Plugin_Broker->postDispatch(Object(Zend_Controller_Request_Http)) #5 C:\wamp\www\77workshop\public\ind in <b>C:\wamp\www\77workshop\library\Zend\View\Abstract.php</b> on line <b>925</b><br /> Any idea why i am getting this error if i can pass in a full path to the view script? or any idea if there is another function to do the same thing? Thanks. On Fri, Jun 19, 2009 at 11:14 PM, Vadim Gabriel <vadim...@gmail.com> wrote: > Well it doesn't work. if i pass a full path and the file exists for some > reason it searches it in the default views/scripts/ directory which i don't > have. And then an exception is raised that the view was not found. Although > i configured the paths. > > > On Fri, Jun 19, 2009 at 11:01 PM, Matthew Weier O'Phinney < > matt...@zend.com> wrote: > >> -- Vadim Gabriel <vadim...@gmail.com> wrote >> (on Friday, 19 June 2009, 10:30 PM +0300): >> > function to render a view script by passing a full path to it's >> location, Does >> > something like this exists? >> >> You can pass a full path to render() already... >> >> -- >> Matthew Weier O'Phinney >> Project Lead | matt...@zend.com >> Zend Framework | http://framework.zend.com/ >> > > > > -- > Vincent Gabriel. > Lead Developer, Senior Support. > Zend Certified Engineer. > Zend Framework Certified Engineer. > -- http://www.vadimg.co.il/ > > > > -- Vincent Gabriel. Lead Developer, Senior Support. Zend Certified Engineer. Zend Framework Certified Engineer. -- http://www.vadimg.co.il/