News Feed
Sections




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

Piotr Pasich:
CakePHP with Symfony's2 router
August 13, 2014 @ 09:46:27

Piotr Pasich has a new post to his site today showing you how you can use the Symfony2 router with CakePHP, another popular PHP framework. He talks about some of his own experiences using CakePHP and how one module "left a bitter aftertaste" when using it - the route handling.

The second version of CakePhp still has a lot old-fashioned patterns, singletons or lack of tests, but I can live with that. I saw a lot of better or worse frameworks in my life.

He goes through an example of the CakePHP routing including some sample code and a walk-through of the code that actually handles the request. He points out some of the "clean code" violations it makes and gets started integrating the Symfony2 router instead. He extends the CakePHP router and uses this plugin to bridge between the two. He then can call the Symfony router with only slight modifications to things like the "getPath" calls.

0 comments voice your opinion now!
cakephp symfony2 router integrate plugin tutorial

Link: http://piotrpasich.com/cakephp-with-symfonys2-router/

blog comments powered by Disqus

Similar Posts

Smashing Magazine: Getting Started With PHP Templating

Brian Swan's Blog: Using the Zend Framework and the PDO_SQLSRV Driver

Qandidate.com Blog: Using the Accept Header to version your API

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 9)

Chris Jones: Quick Debugging of PHP Scripts in Emacs with Geben and Xdebug


Community Events





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


version language introduction voicesoftheelephpant conference framework series list community release tool opinion symfony artisanfiles interview library laravel podcast composer security

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