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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-09-2008, 03:56 AM
Junior Member
 
Join Date: Feb 2008
Posts: 15
Default Changing the views folder to templates

Alright, I'm in the middle of a development. The problem is that well going folders /apps/views/scripts is becoming a little annoying and I want to be able to change it to /templates

I tried to use (zend_view)setBasePath but it didn't work as expected. Any suggestions?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-09-2008, 08:58 PM
Junior Member
 
Join Date: Oct 2007
Posts: 21
Default

You were close; setScriptPath was the function you needed however.

PHP Code:
$view->setScriptPath('/templates'); 
Bear in mind that not following convention makes it harder for other developers to jump into your work. This may or may not be important for you.

Last edited by Davidoff : 05-09-2008 at 09:01 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-09-2008, 08:59 PM
Junior Member
 
Join Date: Oct 2007
Posts: 21
Default

-double post-

Last edited by Davidoff : 05-09-2008 at 09:01 PM. Reason: double post
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-10-2008, 03:53 AM
Junior Member
 
Join Date: Feb 2008
Posts: 15
Default

Thanks! I should have looked at the API Doc more =/

I think I'll leave a few notes it's a minor thing.
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 11:34 PM.