I am creating a PHP wiki engine that uses the same template for all sites that point to it. However, some websites have their own template. Can I get Smarty to use this custom template if it exists?
Here is my directory structure:
/web/wiki/templates <-- all templates here /web/wiki/templates/wiki.domain.com <-- individual template
How can I use templates to use smarty in /web/wiki/templates/wiki.domain.com first for wiki.domain.com , and if the template does not exist in this directory, use the template in /web/wiki/templates ?
Can I identify several template directories for Smarty and try to select a template from the top directory first? If I could do this, I could simply reorder the template directories:
/web/wiki/templates/wiki.domain.com /web/wiki/templates
source share