I figure the best way would to use SVN and just check out the framework in each website directory and then just "update" them using svn. What do you think about this?
Now heres once place i get stuck, should i be storing the "Config" in a file and then have the framework check if that file exists and then include it? or store it in the database?
And how about more functionality, i can't just go in and change stuff in the framework per project, because the next update will just write back over it. So again i can have the framework check and see if files exist and include them, or maybe i can extend the classes some how.
Right now the directory is something like..
Code: Select all
www/ #root
mvc/ #Framework Root
class/ #Classes for Framework
tpl/ #Default Template Files When No Template Folder Found
controllers/ #Controllers To load Should i have it here? or in www/controllers?
main.php #Includes Classes, Defines, and Starts Sessions
tpl/ #Framework Looks in here for other Template Files if Exists
index.php #Will need to make this for each Project(See Below)Code: Select all
/**
* All Pages are "Processed" Though this page
* index.php?controller=$1&action=$2&more=$3
*/
// Include MVC Main includes.
// I could now include all Custom Classes, functions, properties that are needed.
include('mvc/main.php');
// Call MVC Dispatch Has optional Params
// I can Call an Extended MVC Controller if i need/make one
MVC::dispatch();PS (Just typing this up helped a lot)