|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Wojtas Smarty n00b
Joined: 17 Aug 2004 Posts: 2 Location: Poland
|
Posted: Tue Aug 17, 2004 10:20 am Post subject: problem with template_c (2.6.3) |
|
|
I have problem with template_c hadling
(smarty 2.6.3 php 4.3.4)
directory structure:
Code: |
+ templates
| + default
| | +header.tpl
| |
| + blue
| +header.tpl
+ template_c
|
and problem (i think) is in nameing the files in the 'template_c' . when I load the default/header.tpl and then blue/header.tpl and onec again I try to load default/header.tpl - smarty is useing the blue/header.tpl (from the templates_c directory)
Code: |
require 'smarty/Smarty.class.php';
$smarty->template_dir = PGS_SERVER_DIR.PGS_HOME_DIR.'/templates/'.$PGS->PGS_config[PGS_theme].'/';
$smarty->compile_dir = PGS_SERVER_DIR.PGS_HOME_DIR.'/templates_c/';
$smarty->config_dir = PGS_DIR;
$smarty->display('header.tpl');
|
see www.dynamit.im.pwr.wroc.pl/wojtas/gwhere.org/ _________________ --
Wojtas O. |
|
Back to top |
|
Wojtas Smarty n00b
Joined: 17 Aug 2004 Posts: 2 Location: Poland
|
Posted: Tue Aug 17, 2004 1:20 pm Post subject: sorry :] |
|
|
Sorry for the previouse post
... i didn't read carefuly the manual
sore again. _________________ --
Wojtas O. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|