O'Reilly logo

Learning FuelPHP for Effective PHP Development by Ross Tweedie

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 3. The Architecture

Before we start building anything with our fresh-installed version of FuelPHP, let's first take a look at some of the main aspects of the architecture. We will also cover some of the places where you should put your code for the project and then follow this with examples in the next chapter.

In this chapter, we will cover the following topics:

  • Environments, constants, and configuration
  • Apache configuration
  • The FuelPHP bootstrap
  • Models, views, and controllers

Environments, constants, and configuration

As any developer will tell you, it's never a good idea to edit files directly in the live production environment. To this end, FuelPHP has the notion of environments baked into its core. Environments allow for different configurations ...

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