Welcome Guest, Not a member yet? Register   Sign In
Newbie: Folder Structure - is this possible ? (boolean answer may sufice) :-)
#1

[eluser]MEM[/eluser]
Hello all,

I have read some threads here and there about organizing folders on a site with admin or backend functionalities. However, I'm unable to find a thread that satisfies this scenario.

Many hosts out there, have a 'private' folder accessible only by FTP, Local, or Script. (no browser access is allowed). I think this is a very nice feature, and that It would be nice to explore. So I do ask:

could something like this be possible?

Quote:/www
/www ( default - http://www.mysite.com )
- index.php (the router file)
/admin ( subdomain - http://admin.mysite.com )
- index.php (the router file)
/blabla ( another subdomain access folder )
/private
/system
/application
/config
/controllers
/admin
- home.php
- products.php
- categories.php
- home.php
- institutional.php
- products.php
- categories.php
/errors
/helpers
/hooks
/language
/libraries
/models
/views
/admin
- home_view.php
- product_view.php
- institutional_view.php
- categories_view.php
- home_view.php
- product_view.php
- institutional_view.php
- categories_view.php
/templates*
/assets*


My assumptions (that could be wrong of course):
-> All calls from the browser will necessarily pass by the router, after this,
the router calls the right controller based on the URL provided, and finally,
the controller deals with choosing the model and the view to be used.


Is this feasible?

*I've seen some structures provided by other users, that put templates and assets in the public_html (here www) folder. Why is this? Shouldn't they only be accessible by script ?




Thanks a lot in advance,
Márcio


Messages In This Thread
Newbie: Folder Structure - is this possible ? (boolean answer may sufice) :-) - by El Forum - 08-24-2009, 05:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB