Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Is my directory structure a problem?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
chrislies
Smarty n00b


Joined: 21 Jul 2004
Posts: 2

PostPosted: Wed Jul 21, 2004 8:31 pm    Post subject: Is my directory structure a problem? Reply with quote

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
View user's profile Send private message
NewfieBilko
Smarty Regular


Joined: 21 Jun 2004
Posts: 41

PostPosted: Wed Jul 28, 2004 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
chrislies
Smarty n00b


Joined: 21 Jul 2004
Posts: 2

PostPosted: Thu Jul 29, 2004 3:36 am    Post subject: Reply with quote

I still get nothing, I've tried putting the absolute path in all of my includes and still nothing.

Question
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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