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

How to setup a Smarty file/dir structure?

 
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
ghost writer
Smarty n00b


Joined: 27 Apr 2003
Posts: 4

PostPosted: Sun Apr 27, 2003 3:16 pm    Post subject: How to setup a Smarty file/dir structure? Reply with quote

I've read the (confusing) documentation, but haven't fully understood how
a smarty powered site should be structured.

Idea Background: I have my own domain, let's call it fooit.net, hosted on a
web hotell. When I connect to my domain using ftp, I see a structure that
consists of a bunch of misc. dirs and the public_html dir. Everything that
goes into public_html is accessible on the net, everything a level up isn't.

(The path is /home/fooit for my account and /home/fooit/public_html for
the public stuff. The folder such as /home/fooit/secret_stuff can't be
access from the web.)



Question My 1:st question is: where should I put the various Smarty dirs/files
if the name of my site/app (my site is dedicated to one thing only) is FooIt?

Currently, I have a dir called Smarty in my account root,
i.e. /home/fooit/Smarty. In public_html I have another folder called
smarty, ie /home/fooit/public_html/smarty, with the templates and
index.php (and setup.php). Is this the way is should be or have I gotten it all wrong.



Question My 2:nd question is: how should the structure look if I apply
the extended setup from the Smarty documentation?

Currently, I've put the setup.php file in the same folder as the index.php
(I.e. they are both in /home/fooit/public_html/smarty)
Back to top
View user's profile Send private message
ghost writer
Smarty n00b


Joined: 27 Apr 2003
Posts: 4

PostPosted: Sun Apr 27, 2003 5:16 pm    Post subject: Reply with quote

xile, so all of the Smarty files of yours can be access by web visitors?
Please correct me if I'm wrong, but I remember reading that some files
shouldn't be web accessible.
Back to top
View user's profile Send private message
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Sun Apr 27, 2003 6:06 pm    Post subject: Reply with quote

As far as I know any of the files can be publicly accessable but if you want to keep people away then use a simple .htaccess file
_________________
"Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane
Back to top
View user's profile Send private message Visit poster's website
ghost writer
Smarty n00b


Joined: 27 Apr 2003
Posts: 4

PostPosted: Sun Apr 27, 2003 6:30 pm    Post subject: Reply with quote

aztek, this isn't the case on my host. only stuff in /public_html/ are public,
everything else is only accessible by myself only.
Thanks for the .htaccess tip - didn't really think of it Rolling Eyes
Back to top
View user's profile Send private message
AZTEK
Smarty Pro


Joined: 16 Apr 2003
Posts: 235
Location: Purdue University

PostPosted: Sun Apr 27, 2003 6:47 pm    Post subject: Reply with quote

I am fully aware of how a webserver works I was saying none of the Smarty files are a security risk if they are publicly accessable as far as I know
_________________
"Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane
Back to top
View user's profile Send private message Visit poster's website
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