Rob Allen, Nick Lo, and Steven Brown
"Zend Framework in Action"
Licensed to Menshu You
Zend Framework in Action (Ch01) Manning Publications Co. 49
17
Stuff you (should) already know
This is the chapter where you can catch up on your knowledge of those bits of PHP that you haven??™t had a
chance to deal with until now. The Zend Framework is written in PHP5 and is fully Object Oriented and you
need to have a reasonable amount of knowledge about object oriented programming in PHP to make sense of
it. This chapter is no substitute for a full book, such as PHP in Action, but it should help you enough to get
going with the Framework.
We shall also look at some software design patterns. A design pattern is an approach used by many people
to the same problem. I use the word approach deliberately, as the actual code used to solve the problem is
usually different but all solutions share the same design. Design patterns give us a vocabulary to be able to
share solutions with one another and to also understand each other. They also have the benefit of having been
tested in real applications and so you can be sure that the design pattern is a good solution to the class of
problems that it helps to solve.
Let??™s dive right in and look at object orientation.
17.1 Object Orientation in PHP
Object oriented programming is a way to group related functions and variables together so that they don??™t get
lost.
Pages:
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368