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 One
March 30, 2007 @ 08:12:00

The phpaddiction website has posted the first part of a series today covering URL routing with PHP (commonly used by frameworks to route requests through a centralized location.

Most PHP frameworks use some variation of the front controller pattern to centralize common code and logic. There are advantages and disadvantages to this. I am going to ignore those for now. In fact the first part of this series will explore a simple procedural URL routing method that contains many of the disadvantages. In later articles we will build upon this basis and address the disadvantages.

He walks through the steps to get things set up - working with mod_rewrite, creating the "entry point" for your application, and finally, how to execute a command based on the request's action.

13 comments voice your opinion now!
url routing framework frontcontroller modrewrite command url routing framework frontcontroller modrewrite command


blog comments powered by Disqus

Similar Posts

Debuggable Blog: How to do Group By conditions in Model find() calls in the CakePHP RC1

Paul Jones: Framework Tradeoffs For Beginners: Product Creation vs Program Maintenance

PHP-Coding-Practices.com: Making CakePHP's Pagination work with Model::expects()

Tim Koschuetzki's Blog: How to put Combined Fields Into CakePHP's Model->generateList()

Felix Geisendorfer's Blog: Command line fun in CakePHP 1.2


Community Events











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


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

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