How to stop Zend Framework from appending '/scripts/' to the View Base Path

Posted by Hannes on Stack Overflow See other posts from Stack Overflow or by Hannes
Published on 2011-01-04T12:52:30Z Indexed on 2011/01/04 12:53 UTC
Read the original article Hit count: 258

Filed under:
|
|
|

Thats basically my code (simplified):

class IndexController extends Zend_Controller_Action
{
    public function indexAction(){
        $this->view->setBasePath(APPLICATION_PATH . '/views/partner/xyz/');
        $this->view->render('node.phtml');
    }
}

Now what I (obvoiusly) want is to use the view script APPLICATION_PATH . '/views/partner/xyz/node.phtml' but ZF always tries to load APPLICATION_PATH . '/views/partner/xyz/scripts/node.phtml' is there any Way around that Behviour?

© Stack Overflow or respective owner

Related posts about php

Related posts about frameworks