Apress Access


By Chris Pitt

  • eBook Price: $38.99
Buy eBook Buy Print Book
Pro PHP MVC looks at the building blocks that make any good MVC framework, and how they apply to PHP. Covering everything, from the theoretical implications to the practical work of building cohesive packages, this book will lay bare all the secrets of MVC for you.

Full Description

  • Add to Wishlist
  • ISBN13: 978-1-4302-4164-5
  • 500 Pages
  • User Level: Intermediate to Advanced
  • Publication Date: November 6, 2012
  • Available eBook Formats: EPUB, MOBI, PDF

Related Titles

  • Go Recipes
  • Learn CakePHP, Second Edition
  • PHP Development Tool Essentials
  • PHP and MySQL Recipes
  • Practical Laravel 5
  • Lumen Programming Guide
Full Description

Model View Controller (MVC) is becoming the definitive architecture of website development frameworks due to the stability, extensibility and predictability it lends to development. It is not just the primary separation of database, business logic and interface components, but includes a wide range of considerations for building high-performing, scalable and secure applications.

Deciding which MVC framework best suits the project you are about to begin is one of the biggest challenges you'll face as a developer. If you are part of a team, this decision has probably already been made for you; but in any event, you'll need to know how (and why) the framework authors made it work the way it does.

Pro PHP MVC looks at the building blocks that make any good MVC framework, and how they apply to PHP. It exposes all considerations that many developers take for granted when using a popular framework, and teaches you how to make the framework your own.

Over the course of reading this book, you will learn the theoretical implications of the choices you would make when writing your own MVC framework, and how to put the pieces together in a cohesive package. We take a look at the highly modular Zend Framework—how to use its collection of loosely coupled classes to build a unified system. We also look at CakePHP, learning from its automated build system (Bakery) and highly intuitive approach to rapid development. This book will lay bare all the secret parts of MVC for you.

What you’ll learn

  • The best way to structure your application files
  • How to get from a URL to the right controller/action
  • Cleanly interact with data objects
  • Efficient use of server resources in content delivery
  • Useful shared class libraries to speed up development
  • Unit testing to ensure maximum stability

Who this book is for

This book is for beginners and advanced developers alike, requiring a basic understanding of PHP5 language features and SQL. If you want to improve your PHP skills, or share the wisdom of popular PHP MVC frameworks, this book will be invaluable to you.

Table of Contents

Table of Contents

  1. Introduction
  2. Foundation
  3. Base
  4. Configuration
  5. Caching
  6. Registry
  7. Routing
  8. Templates
  9. Database
  10. Models
  11. Testing
  12. Structure
  13. Bootstrapping
  14. Registration + Login
  15. Settings
  16. Search
  17. Sharing
  18. Photos
  19. Extending
  20. Administration
  21. Testing
  22. CodeIgniter: Bootstrapping
  23. CodeIgniter: MVC
  24. CodeIgniter: Extending
  25. CodeIgniter: Testing
  26. Zend Framework: Bootstrapping
  27. Zend Framework: MVC
  28. Zend Framework: Extending
  29. Zend Framework: Testing
  30. CakePHP: Bootstrapping
  31. CakePHP: MVC
  32. CakePHP: Extending
  33. CakePHP: Testing
  34. Appendix A: Setting Up a Web Server
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.


If you think that you've found an error in this book, please let us know by emailing to editorial@apress.com . You will find any confirmed erratum below, so you can check if your concern has already been addressed.
No errata are currently published


    1. PHP Objects, Patterns, and Practice


      View Book

    2. PHP for Absolute Beginners


      View Book

    3. Pro PHP Security


      View Book

    4. Beginning PHP and MySQL


      View Book