|
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 |
mk Smarty n00b
Joined: 24 Nov 2004 Posts: 3
|
Posted: Wed Nov 24, 2004 2:12 pm Post subject: change variable in Smarty.class.php |
|
|
Hi all,
i am a new user for smarty i have this code:
require('libs/Smarty.class.php');
$smarty = new Smarty;
$smarty->display("temp1/index.html");
it work well but i want to change any of variable in the Smarty.class.php file like $template_dir i don't want to change it at Smarty.class.php file i want to change it at any off the application file and it still the default in the Smarty.class.php file :
How can i do that |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Nov 24, 2004 3:11 pm Post subject: |
|
|
require('libs/Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = '/path/to/my/templates';
$smarty->display("temp1/index.html");
like that? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
|
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
|