|
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 |
ermitonio Smarty n00b
Joined: 21 May 2003 Posts: 2
|
Posted: Wed May 21, 2003 12:53 pm Post subject: DIRECTORY_SEPARATOR constant not being initialized ?!?! |
|
|
i kept on getting the error:
"Smarty error: unable to read template resource: ..."
i went straight to the smarty class file and did some simulation. eventually, i found out that a constant DIRECTORY_SEPARATOR does not get a value!
i tried to search where that constant variable is supposedly being initialized but i found nothing.
to cut the story short, this is what i did as a work around
Code: |
define('DIR_SEP', DIRECTORY_SEPARATOR); // original
define('DIR_SEP', "\\"); // the hack!!!
|
btw, i am running php 4 in w2k. i don't want to do the same thing when i move to *nix. can someone explain this? |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Wed May 21, 2003 12:57 pm Post subject: |
|
|
if DIRECTORY_SEPARATOR ist not defined, your php is too old. smarty requires php-4.0.6 or later. |
|
Back to top |
|
ermitonio Smarty n00b
Joined: 21 May 2003 Posts: 2
|
Posted: Thu May 22, 2003 1:09 am Post subject: |
|
|
ok, i need not worry about my migration to the live environment then. tnx! |
|
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
|