CHAPTER 4

images

Configuration

One of our goals is to create a framework that is easy to configure, yet assumes some basic things so that it is fast to develop with and flexible to change. It follows that we would require a standard format for storing, and method for retrieving, configuration variables. There are a number of approaches to this topic, and in this chapter, we will look at two popular methods.

Goals

  • We need to review different methods of configuration, and decide on the best one to use for our framework/application.
  • We need to build a set of classes that we can use to parse configuration files, and provide a clear set of configuration ...

Get Pro PHP MVC now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.