1Introducing Symfony, CakePHP, and Zend FrameworkAn invasion of armies can be resisted, but not an idea whose time has come. — Victor HugoWHAT’S IN T
10 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORKdisproportionally huge and perhaps somewhat excessive. Here is an overview of a few
OPEN SOURCE PHP WEB FRAMEWORKS x 11Agavi Started: 2005License: LGPLPHP versions: 5.2.0+ (recommended 5.2.8+)Its logo is shown in Figure 1-8. Website:
12 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORKYii Started: 2008License: BSDPHP versions: 5.1.0+Its logo is shown in Figure 1-11.
OPEN SOURCE PHP WEB FRAMEWORKS x 13QcodoStarted: 2005License: MITPHP versions: 5.xIts logo is shown in Figure 1-14. Website: www.qcodo.comQcodo is an
14 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORKDESIGN PATTERNS IN WEB FRAMEWORKSThere are certain abstractions that can be transpo
DESIGN PATTERNS IN WEB FRAMEWORKS x 15 ‰Model — Represents the business logic of the application. It is more than just the raw data; the Model has to
16 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORKconferred by the authors of the frameworks. So we will call all frameworks Model-Vi
DESIGN PATTERNS IN WEB FRAMEWORKS x 17 private static $isRented = FALSE; private function __construct() { } static function rentCar() {
18 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORK } else { $this->drivesCar = TRUE; } } function r
DESIGN PATTERNS IN WEB FRAMEWORKS x 19Customer_2 wants to rent the car. Again.Customer_2 says: I drive Dodge Magnum really fast! The Singleton patter
2 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORKWHAT ARE WEB APPLICATION FRAMEWORKS AND HOW ARE THEY USED?A web application framewor
20 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORK<?phpabstract class CarPrototype { protected $model; protected $color;
DESIGN PATTERNS IN WEB FRAMEWORKS x 21echo ‘Fine, we will paint your ‘.$customersCar->getModel(). ‘ ‘.$customersCar->getColor().’.<br /
22 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORKdecorated object and extends its responsibilities dynamically. It is like putting a
DESIGN PATTERNS IN WEB FRAMEWORKS x 23<?php class CarDecorator { protected $car; protected $gearMessage; protected $comfortMessa
24 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORK echo ‘Driving the car without decoration: <br />’; echo $car->drive() .
DESIGN PATTERNS IN WEB FRAMEWORKS x 25So, how do you create such Chain of Responsibility? The main idea of this pattern is to process a request by a
26 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORKapplication may display different pages depending on which steps are needed to comp
DESIGN PATTERNS IN WEB FRAMEWORKS x 27of traversal can be produced for both of them. When Client calls the next() method, different ordering algorith
c01.indd 28c01.indd 28 1/24/2011 5:45:22 PM1/24/2011 5:45:22 PM
WHAT ARE WEB APPLICATION FRAMEWORKS AND HOW ARE THEY USED? x 3is nothing wrong with a piece of code being a library, as it is just a different entity
4 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORK ‰For producing consecutive apps, in which modularity and reusability of pieces of c
WHAT ARE WEB APPLICATION FRAMEWORKS AND HOW ARE THEY USED? x 5technologies. Then in 2005 there was a boom of Ruby. Everyone was amazed with the elega
6 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORKOPEN SOURCE PHP WEB FRAMEWORKSAnother question we want to answer is why we have chos
OPEN SOURCE PHP WEB FRAMEWORKS x 7FIGURE 12: Comparison of search volumes of di erent PHP frameworksThe First LookThe fi rst look at the frameworks
8 x CHAPTER 1 INTRODUCING SYMFONY, CAKEPHP, AND ZEND FRAMEWORKtested agile codebase. Zend Framework is focused on building more secure, reliable,
OPEN SOURCE PHP WEB FRAMEWORKS x 9CakePHP was started in 2005 by the effort of Polish web developer Michał Tatarynowicz. Heavily inspired by Ruby on
Comments to this Manuals