Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Dedicated server web hosting provided by Guru-host.eu.
installation error

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
eduard77
Smarty n00b


Joined: 30 Aug 2011
Posts: 1

PostPosted: Tue Aug 30, 2011 7:27 pm    Post subject: installation error Reply with quote

I try to install smarty and when I write the require code I cannot find the path

require_once ('d:/wamp/bin/php/php5.3.5/Smarty-3.0.8/Smarty.class.php');
or if you could tell me which is the correct syntax in the ini.php page.
Thanks
Back to top
View user's profile Send private message
suf3r
Smarty Rookie


Joined: 09 Apr 2010
Posts: 33

PostPosted: Sun Oct 02, 2011 4:48 pm    Post subject: Reply with quote

I always doing like this:
Code:
define('START', dirname(__FILE__));
require_once START . '/Smarty-3.0.8/Smarty.class.php';


This works if your ini.php in root folder. If not, then it will be
Code:
define('START', dirname(dirname(__FILE__)));
and so on.
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