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 2

images

Foundation

We will begin our framework by looking at some foundational (OOP-focused) code on which the core components will be based. The first thing we will look at is how to execute code that is spread over multiple files. We will also look at what to do when we encounter errors. Finally, we will create a convenient means of sorting and retrieving class metadata.

Goals

  • We need to develop a means to load classes automatically. Classes should be located based on their names, and these names should translate into a folder hierarchy.
  • We need to understand and define custom Exception subclasses, so that we can handle the most common ...

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