O'Reilly logo

Pro PHP MVC by Chris Pitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 19

images

Extending

One of the biggest differentiators of popular frameworks is how easily they can be extended with third-party libraries. Up until now, all the classes we have developed have belonged either to the framework or to the application.

Goals

  • We need to understand how we can create our own libraries.
  • We need to understand how we can use libraries from other developers.
  • We need to understand what the Observer design pattern is and why it’s relevant to our application.
  • We need to build a means of listening for and emitting events within our applications.

Foxy

The first kind of library we will look at is the kind we create ourselves. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required