Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-22-2008, 05:10 PM
Junior Member
 
Join Date: Apr 2008
Posts: 3
Default custom view directory structure

hello !
i'm having some problems with a custom directory structure for a project

the project is small and i don't want 5 directories in 'view/scripts' with 1 file in each of them. so... how can i set the default view folder for all my controllers/actions to 'application/views/scripts' ?

and also set the default extension to .php not .phtml

i've manage to set the layout.phtml with
PHP Code:
$layout Zend_Layout::startMvc(array('layoutPath'=>BASE_DIR 'application/views'));
$layout->setViewSuffix('php'); 
but i can't find a way to change the default behaviour for views

thanks for the time !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-22-2008, 05:53 PM
Junior Member
 
Join Date: Apr 2008
Posts: 3
Default

ok.. found it.. i had to "bother" the whole forum to get the answer
in bootstrap i've added
PHP Code:
$viewRenderer Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$viewRenderer->setViewSuffix('php')->setViewScriptPathSpec(':action.:suffix'); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:15 PM.