THE GAME CUSTOMIZATION NETWORK: FPSBANANA | RTSBANANA | RPGBANANANovember 2008 award winners are in... | SUBSCRIBE
Search
  
 
 
 
 
 
 


MVC Architecture & URL Routing
by .
100% Complete
Implementing a Model-View-Controller design architecture using a custom url routing system in the index file that uses arrays to get the requested URI which includes the controller, which calls on the model to get the class and function for the request.

I.E.

/thread/show/1

includes the thread controller, which calls the thread class which uses a switch to call the show function with a variable of 1.


$array = array(0 => 'thread', 1 => 'show', 2 => '1');


example of the switch in the thread controller:

$thread = new thread;

switch($array['1'])
{
    case 'show':
      $thread->show($array['2']);
    break;
}
Part of project sForum AR2.0, Added 3 months ago, last modified 3 months ago, 0 comments, 115 views, 0 stamps
TodoList
 
 
Project Summary
sForum AR2.0
Status: In Development
20% Complete
2nd version of sForum....this time using MVC architecture, and much more organized.
In category Scripts, Added 3 months ago, last modified 3 months ago, 0 comments, 209 views, 2 WiPs, 0 files
Project Participants
Stamps
No stamps recorded
StampIt
Is this WiP particularly good or bad in one or more areas? Stamp it!
You must login or register to access this!
Feedback
None Found
Add Message
You must login or register to access this!
More by .
More by Forgotten Inc.