Artsemis,

Check out this
http://framework.zend.com/manual/en/zend.view.controllers.html

I also think you can override the viewRenderer.  Below is an example from
framework.zend.com and shows how to use smarty.  I assume if you just change
the setViewBasePathSpec to your dir that might work.  haven't tested it but
worth a try


$view = new Zend_View_Smarty('/path/to/templates');
$viewRenderer =
    new Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
$viewRenderer->setView($view)
             ->setViewBasePathSpec($view->_smarty->template_dir)
             ->setViewScriptPathSpec(':controller/:action.:suffix')
             ->setViewScriptPathNoControllerSpec(':action.:suffix')
             ->setViewSuffix('tpl');



On Thu, Sep 17, 2009 at 9:45 PM, Artsemis <[email protected]> wrote:

>
>
>
> Matthew Weier O'Phinney-3 wrote:
> >
> > -- Artsemis <[email protected]> wrote
> > (on Thursday, 17 September 2009, 01:28 PM -0700):
> >> As implied by the subject, why do you config the base directory here for
> >> most
> >> things (specifically controllers) but can't for pages? Where can you
> >> change
> >> the path to pages?
> >
> > What do you mean by "pages"? Since ZF is front controller driven, all
> > "pages" of a ZF website are the result of controller actions...
> >
> > --
> > Matthew Weier O'Phinney
> > Project Lead            | [email protected]
> > Zend Framework          | http://framework.zend.com/
> >
> >
>
> Thanks for the response. You're on the right track but sorry I wasn't clear
> -- I'm referring to the location of the pages that the controller accesses.
> You are required to specify in the config where the controllers are located
> but not the base directory that holds all of the pages -- they default to
> /views/scripts. Is this changeable anywhere?
>
> Thanks!
> --
> View this message in context:
> http://www.nabble.com/application.ini---config-controllers-and-layouts%2C-but-not-pages--tp25492249p25501912.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>


-- 
Shaun J. Farrell
Washington, DC
(202) 713-5241
www.farrelley.com

Reply via email to