News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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.

1 comment voice your opinion now!
url routing framework frontcontroller modrewrite command url routing framework frontcontroller modrewrite command




Similar Posts

Symfony Blog: Symfony 1.0.10 is Out

DevShed: Introduction to the CodeIgniter PHP Framework

Zend Developer Zone: Zend Framework Hidden Gems: Introduction

SaniSoft Blog: unbindModel() and paginate() gotcha in CakePHP 1.2

Debuggable Blog: Simple Data Access Control


Community Events







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


release developer job application database mysql example framework PHP5 package zendframework ajax book security code releases cakephp conference zend PEAR

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