|
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 |
eduard77 Smarty n00b
Joined: 30 Aug 2011 Posts: 1
|
Posted: Tue Aug 30, 2011 7:27 pm Post subject: installation error |
|
|
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 |
|
suf3r Smarty Rookie
Joined: 09 Apr 2010 Posts: 31
|
Posted: Sun Oct 02, 2011 4:48 pm Post subject: |
|
|
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 |
|
|
|
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
|