">'>alert(4)=&{}");}alert(6);function xss(){// [email] => justa@test.de [name] => ';alert(0)//';alert(1)//";alert(2)//"; [news_id] => 7625 [user_id] => [parent_id] => [id] => 16572 [title] => ';alert(0)//';alert(1)//";alert(2)//";alert(3)//-->">'>alert(4)=&{}");}alert(6);function xss(){// [ip] => 84.129.54.123 [spam_check] => 0 ) ) [full_name] => Chris Cornutt [tags] => Array ( [0] => Array ( [news_id] => 7625 [id] => 21486 [tag] => url ) [1] => Array ( [news_id] => 7625 [id] => 21487 [tag] => routing ) [2] => Array ( [news_id] => 7625 [id] => 21488 [tag] => mvc ) [3] => Array ( [news_id] => 7625 [id] => 21489 [tag] => modelviewcontroller ) [4] => Array ( [news_id] => 7625 [id] => 21490 [tag] => controller ) [5] => Array ( [news_id] => 7625 [id] => 21491 [tag] => dispatch ) [6] => Array ( [news_id] => 7625 [id] => 21492 [tag] => execute ) [7] => Array ( [news_id] => 7625 [id] => 53490 [tag] => url ) [8] => Array ( [news_id] => 7625 [id] => 53491 [tag] => routing ) [9] => Array ( [news_id] => 7625 [id] => 53492 [tag] => mvc ) [10] => Array ( [news_id] => 7625 [id] => 53493 [tag] => modelviewcontroller ) [11] => Array ( [news_id] => 7625 [id] => 53494 [tag] => controller ) [12] => Array ( [news_id] => 7625 [id] => 53495 [tag] => dispatch ) [13] => Array ( [news_id] => 7625 [id] => 53496 [tag] => execute ) ) ) ) --> PHPDeveloper.org: phpaddiction: Url Routing with PHP - Part Three
 
 
 
News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

phpaddiction:
Url Routing with PHP - Part Three
April 16, 2007 @ 07:03:00

phpaddiction has posted part three of its URL Rewriting tutorial series today - the creation of the "C" (Controller) in MVC.

In the final part of this series, I will build a functional modular front controller that can be easily adapted to small projects. It is basically the "C" in MVC for a simple MVC framework. If you haven't read the first two articles I recommend that you read over them first. Url Routing with PHP - Part One and Url Routing with PHP - Part Two.

They start with the base created before (with some slight modifications) and build up the dispatcher to handle their new requests and the controller to respond. In their example, when the Controller is called, it runs the execute() method and, based on the input, either calls another function or returns an error if it doesn't exist.

1 comment voice your opinion now!
url routing mvc modelviewcontroller controller dispatch execute url routing mvc modelviewcontroller controller dispatch execute


blog comments powered by Disqus

Similar Posts

PHPMaster.com: The MVC Pattern and PHP, Part 2

Ben Ramsey's Blog: Zend Framework View Notes

Rob Allen's Blog: Zend Framework Tutorial for 0.7

PHPBuilder.com: Building RESTful Web Services with the Zend Framework

Padraic Brady's Blog: Zend Framework Caching (Parts 1, 2 & 2b)


Community Events











Don't see your event here?
Let us know!


framework language series composer application hhvm install security package release code podcast opinion unittest symfony2 overview introduction component facebook hack

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework