News Feed
Sections




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

Felix Geisendörfer's Blog:
Learning from the CakePHP source code - Part 2
September 29, 2006 @ 08:29:00

In his latest blog entry on the ThinkingPHP Blog, Felix Geisendörfer continues on with the series started here and shows that there's more to learn from the CakePHP source code.

In the previous post I was showing how to use the Dispatcher::dispatch() function. Now what's more interesting, is what it actually does and in what order.

He lists out the order of the process the Dispatcher follows:

  • Build the $params array
  • Find the base url
  • Load/Include the requested Controller
  • Possible Plugin Logic
  • Executing the Admin Route
  • Render a possible missingController error
  • Action exists? Action private?
  • Set Controller variables
  • Load Components & Models
  • Render possible missingAction/privateActione errors
  • Invoke the controller
It seems like a long way to go to just get the request to the right Controller, but it all happens in the blink of an eye when the page request is made.

If you've enjoyed the look at the Dispatcher, let Felix know - especially if you'd like to see other parts covered.

0 comments voice your opinion now!
cakephp framework source part2 dispatcher process cakephp framework source part2 dispatcher process


blog comments powered by Disqus

Similar Posts

Nick Lo's Blog: RewriteRouter and Zend_Config play together

PHPMaster.com: Web Routing in PHP with Aura.Router

The Bakery: New Articles/Tutorials - NiceHead, Field Validation and Plugin Paths

EllisLabs Blog: EllisLab moves to Mercurial, Assembla, BitBucket; CodeIgniter 2.0 Baking

Felix Geisendörfer's Blog: Agile Web development (with CakePHP)


Community Events

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


laravel5 unittest api interview library extension podcast release threedevsandamaybe series voicesoftheelephpant opinion community language development wordpress feature introduction laravel framework

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