duplicate template name dont reload problem
| From: | Rex Chung | Date: | Fri, 01 Nov 2002 11:21:27 +0000 |
| Subject: | duplicate template name dont reload problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6300@lists.php.net to get a copy of this message | ||
Hi guys,
I've recently started using Smarty for a little CMS that I built. I
wrote a module plug-in which calls my module class function and outputs
with either default template or user defined as a param in the plug-in.
I got the problem of templates with the same name does not get reloaded,
(unless the code of the template itself is modified).
Scenario:
Module's default template is called 'A.tpl'.
Page contains that plugin and it gets loaded.
When the use defines another template with the same name 'A.tpl' but
it's from a different directory.
I load the page again, the plugin part doesn't change to the new A.tpl
How can I fix this problem?
Thanks.
Rex.