Book 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
- Titlepage
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- Chapter 1: Introduction to MVC
- Chapter 2: Foundation
- Chapter 3: Base Class
- Chapter 4: Configuration
- Chapter 5: Caching
- Chapter 6: Registry
- Chapter 7: Routing
- Chapter 8: Templates
- Chapter 9: Databases
- Chapter 10: Models
- Chapter 11: Testing
- Chapter 12: Structure
- Chapter 13: Bootstrapping
- Chapter 14: Registration and Login
- Chapter 15: Search
- Chapter 16: Settings
- Chapter 17: Sharing
- Chapter 18: Photos
- Chapter 19: Extending
- Chapter 20: Administration
- Chapter 21: Testing
- Chapter 22: CodeIgniter: Bootstrapping
- Chapter 23: CodeIgniter: MVC
- Chapter 24: CodeIgniter: Extending
- Chapter 25: CodeIgniter: Testing
- Chapter 26: Zend Framework: Bootstrapping
- Chapter 27: Zend Framework: MVC
- Chapter 28: Zend Framework: Extending
- Chapter 29: Zend Framework: Testing
- Chapter 30: CakePHP: Bootstrapping
- Chapter 31: CakePHP: MVC
- Chapter 32: CakePHP: Extending
- Chapter 33: CakePHP: Testing
- Appendix A: Setting Up a Web Server
- Index
Product information
- Title: Pro PHP MVC
- Author(s):
- Release date: October 2012
- Publisher(s): Apress
- ISBN: 9781430241645
You might also like
book
Pro PHP Programming
If you are a web programmer, you need to know modern PHP. This book presents with …
book
Pro PHP: Patterns, Frameworks, Testing and More
Taking care to focus solely on those topics that will have the most impact on experienced …
book
PHP Development Tool Essentials
Learn PHP development best practices, such as version control, development environment virtualization, and coding standards. You'll …
book
Ajax Design Patterns
Ajax, or Asynchronous JavaScript and XML, exploded onto the scene in the spring of 2005 and …