I'm trying (unsuccessfully) to add two parallel directories as a template for smarty (3).
In short I would like to create a base template and another custom. If a custom file is not present then smarty should use the base template which is definitely present.
There is already something that will do that?
Of course, this will work even with the import.
Yes you can specify multiple template directories using
setTemplateDir.Example
You can get more info on this from Smarty.
http://www.smarty.net/docs/en/api.set.template.dir.tpl
and here
http://www.smarty.net/docs/en/resources.tpl#templates.from.specified.template.dir