|
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 |
stevevs Smarty n00b
Joined: 29 Sep 2004 Posts: 2
|
Posted: Wed Sep 29, 2004 3:48 pm Post subject: trouble with Demo |
|
|
I am trying to install Smarty and am running into probs.
I am trying to get demo to work and i get the following error:
Warning: Unable to access /var/www/html/smarty/libs/core/core.get_microtime.php in /home/virtual/site19/fst/var/www/html/smarty/libs/Smarty.class.php on line 1139
I had to add these lines to the index.php to find Smarty.class.php:
define("SMARTY_DIR","/var/www/html/smarty/libs/");
ini_set("include_path",".:/var/www/html/smarty/libs/");
require '../libs/Smarty.class.php';
I have been working for days and i am stumped... does anyone know of a company that will assist with Smarty install for $? I feel like i am spinning my wheels. |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed Sep 29, 2004 3:58 pm Post subject: |
|
|
Check it out:
Warning: Unable to access /var/www/html/smarty/libs/core/core.get_microtime.php in /home/virtual/site19/fst/var/www/html/smarty/libs/Smarty.class.php on line 1139
In the first case, it is looking for /var/www/html/smarty/libs/core/ (note that in your version of Smarty, core/ is a a required subdirectory of libs/)
But apararently, your Smarty class is at /home/virtual/site19/fst/var/www/html/smarty/libs/
So Smarty can't find the Smarty dir. I take it that your include of the Smarty class is not using the distribution's smarty class because you modified it. Don't do that: instead, subclass the original Smarty class as explained in the documentation: http://smarty.php.net/manual/en/installing.smarty.extended.php
Still, setting SMARTY_DIR should work...unless you are super funkifying your modified smarty class...hmm.
HTH |
|
Back to top |
|
stevevs Smarty n00b
Joined: 29 Sep 2004 Posts: 2
|
Posted: Wed Sep 29, 2004 4:30 pm Post subject: |
|
|
Thanks a million boots. are you for hire? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed Sep 29, 2004 4:52 pm Post subject: |
|
|
For hire? Damn: here I am giving it away for free! |
|
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
|