Afficher un message
Vieux 27/10/2006, 17h05   #1
Eric Mueller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Refactoring templates folder

Hi, I have so many files in my templates/ folder that I'm trying to break it
down into sub-folders.

I can set the templates directory by changing the $smarty->template_dir
variable, but the problem is my templates all {include} common files
(header.tpl, footer.tpl, that sort of thing).

Sooo... is there a way to set the template_dir in the template itself, so I
can be sure the common files are loaded from templates/shared, but then the
main template comes in from a different sub-folder under templates/ ?

thanks,
Eric

_____
Eric Mueller - (323) 852-0883 (Pacific time), (323) 417-4900 fax
Themepark - a specialized web services company
"great web sites, delicious corn dogs!"
http://themepark.com

A Cappella Always, the 24x7 all-a cappella radio station!
broadcasting since 2001 at http://acappellaalways.com

  Réponse avec citation
 
Page generated in 0,06487 seconds with 9 queries