|
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 |
chrislies Smarty n00b
Joined: 21 Jul 2004 Posts: 2
|
Posted: Wed Jul 21, 2004 8:31 pm Post subject: Is my directory structure a problem? |
|
|
I am having trouble getting Smarty to work 100% of the time. I am starting to think that my directory structure is a problem. here is what I have
directory structure:
/www/php_includes/smarty/smarty.class.php
/www/lies/includes/smarty_class.php (which includes ../php_includes/smarty/smarty.class.php and extends Smarty)
/www/lies/photos/index.php
my problem lies in the /www/lies/photos directory, smarty just doesnt want to work from there.
All of my php files that use smarty which are under /www/lies work perfectly fine with the following include:
include("includes/smarty_class.php");
but if I go down one more directory to /www/lies/photos, smarty doesnt work at all.
within /www/lies/photos/index.php I have:
include("../includes/smarty_class.php");
does anyone know a solution for this?
Thanks,
Chris |
|
Back to top |
|
NewfieBilko Smarty Regular
Joined: 21 Jun 2004 Posts: 41
|
Posted: Wed Jul 28, 2004 12:49 pm Post subject: |
|
|
yea it seems everyone talks about this eventually, andits what im working on now..
it has to do with smarty wanted to draw up your templates, find your smarty includes and everything as if from the /photos directory, looking for /photos/templates, or /phptos/smarty, u get me. So you need to set an absolute Dirroot, from your C, or Root like c:\www\whatever, and throw that variable in front of the calls to includes and such. |
|
Back to top |
|
chrislies Smarty n00b
Joined: 21 Jul 2004 Posts: 2
|
Posted: Thu Jul 29, 2004 3:36 am Post subject: |
|
|
I still get nothing, I've tried putting the absolute path in all of my includes and still nothing.
|
|
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
|