Skip to Main Content
Pro PHP MVC
book

Pro PHP MVC

by Chris Pitt
October 2012
Beginner to intermediate content levelBeginner to intermediate
500 pages
10h 29m
English
Apress
Content preview from Pro PHP MVC

CHAPTER 3

images

Base Class

One of the excellent things about building an MVC framework, using OOP paradigms, is the ability for us to reuse code, with minimal effort. At any time, we might be required to add core functionality to the majority of our classes, and a good OOP base will help us to do this.

Imagine we build an application with our newly built framework, and we suddenly need to add new security measures across the whole application. We could make changes to every controller, invoking a repeated function, or referencing a shared function, but the best solution would be to add the shared functionality higher up the inheritance chain.

If all ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro PHP Programming

Pro PHP Programming

Peter MacIntyre, Brian Danchilla, Mladen Gogala
Ajax Design Patterns

Ajax Design Patterns

Michael Mahemoff

Publisher Resources

ISBN: 9781430241645Purchase book