RE: [SMARTY] Changing Templates
| From: | Jeroen Roosenboom | Date: | Wed, 16 Oct 2002 10:34:28 +0000 |
| Subject: | RE: [SMARTY] Changing Templates | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6175@lists.php.net to get a copy of this message | ||
Cameron,
Probably the template files in the different style(skin) directories, have
the same name. This confuses the Smarty compiling part.
Two ways to solve this problem:
- rename the files :o)
- use $smarty->assign("template.tpl", $cacheid)
the $cacheid could be anything, but for you it would make sense to use the
skin name.
For more info, manual:
http://smarty.php.net/manual/en/caching.multiple.caches.html
Jr
>>
Hi
I have made a site, and I am using smarty templates for the design. I have
created a templates dir in the web root and created folders in side it named
template1, template2, template3 and so on.
Now the idea is that I can change the template path in my site and the site
will just switch to another template (skinning). This sort of works, but is
behaving strangely. When I change the template path in my setup.php file
that I have. It don't change the site design until the templates are edited.
I thought this was a caching problem so I turned this feature off. but that
had no effect. The caching works when I turn it off because any database
stuff gets updated, but the actual template don't.
Does any one know what I am doing wrong here.
Thanks for you help
-------------------
Cameron Cooke
Toucan Resolve Ltd.
toucan@tiscali.co.uk
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php