View Single Post
Old 12-28-2008, 03:44 AM   #20 (permalink)
Village Idiot
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

That is probably going to be too complex, we are not using most of the things provided in that structure. I was thinking something more like this:
Code:
Main Dir
/Core /src /templates /implementation /images (below webroot? We have to process them one way or another)
-Core is our class functions and deeper logic. Absolutely no implementation or design elements are to be here.
-Src is our script related images, javascript, ect.
-Templates is our templates, each one will have a sub directory.
-Implementation is where the stuff actually happens, where the commands are actually called and ran on the server. This is almost exclusively inline code.
-Main Dir is where our front pages are called which call the templates.
-Images is where we store the images for the users, we will mod_rewrite a file to load and process them. It might be ideal to put it below the webroot. This filename would be a config.

Lets say a user submits an image. He is taken to main/submit.php. This file loads its implementation file which actually submits the image. The implementation files deal with the classes to utilize them, they almost completely inline code. The main file after getting the response from its implementation file then displays the template and all the effects it needs to.

This gives good abscraction from the classes, implementation, and displaying. It is also fairly simple and straight forward.

I would like this confirmed with other programmers before I actually do it though.
__________________


Last edited by Village Idiot : 12-29-2008 at 04:53 PM.
Village Idiot is offline  
Reply With Quote