Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
How to start Smarty?

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
0rientsieg
Smarty Rookie


Joined: 08 Jan 2014
Posts: 24

PostPosted: Wed Jan 08, 2014 2:19 am    Post subject: How to start Smarty? Reply with quote

Dear All,
I downloaded Smarty and unzipped it. I uploaded it to my web space in a directory 'Smarty'. I retrieved with php __FILE__ the path to the Smarty libs directory for including the class file 'Smarty.class.php'. But the demo does not run.
The include file is included because I set a
echo "<br /><br /> Memory usage-1: " . memory_get_usage();
As the first and the last instruction in the class file. These commands are executed.
What do I wrong?
Question: where has the template file .tpl to be located?
I tried to include the template file into the demo file but then the template file .tpl will only be displayed without inserted variables.
Regards
0rientsieg
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP