News 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 Two
April 06, 2007 @ 08:41:00

On the phpaddiction site today, there's part two of their tutorial looking at URL routing with PHP (started here in Part One).

With the foundation of the routing in place (from part one), they move on to bigger and better things:

  • assign responsibilities (what needs to be accomplished)
  • creating a standard command object
  • interpreting the URLs and the parameters passed in it
  • using this information to dispatch the correct commands
There's code examples through out to illustrate each point as well as one main one at the end to show how to put it all into action. Their script reads in the URL and sends the command along to the CommandDispatcher - check out this example page to see it in action.

0 comments voice your opinion now!
url routing tutorial command object interpret dispatch url routing tutorial command object interpret dispatch


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Under the Hood of Yii’s Component Architecture, Part 2

Felix Geisendorfer's Blog: Two Tutorials - Title to Slug & Dependencies with If

PHP-GTK Community Site: GtkToolbar, GtkMenubar, and PEAR XML-RPC for geo-nick

Devshed: The Basics of Using the Prototype Pattern with PHP 5

Steven Macintyre's Blog: Building a Modular Zend Framework CMS


Community Events





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


developer introduction api list conference library bugfix interview community voicesoftheelephpant tips deployment series laravel language framework zendserver release symfony podcast

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