[SMARTY] Multiple Template Directories

Vonleigh Simmons <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
     On the current site I'm working on I would like the users to be  
able to customize their own section of the site if they wish to by  
providing their own template.

     So what I would like is for smarty to search the users directory  
and if no template is found there, load the template from the normal  
template directory. In other words, if the user has provided a  
template, that it override the general one.

     After some googling I saw some discussions that talked about  
modifying the smarty code itself to allow an array of template  
directories, seems smarty is smart enough to handle this, however  
this solution doesn't sound very elegant as I'm going to be fighting  
the developers on every update.

     What is a good clean way to do this? All suggestions are  
welcome. In my setup I subclass smarty as per the manual if that helps.


Vonleigh Simmons
<http://illusionart.com/>

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.