Skip to content

Core controller hierachy

aurorawizard edited this page Jul 14, 2017 · 1 revision

As an extension to the FuelPHP framework a couple of core controller classes are presented in the HTWeb project. These core controllers provide basic functionality to all other controllers and are used throughout the project. On this page all core controllers will be briefly explained.

Hierarchy

There are four core controllers at the moment:

  1. secure
  2. lang
  3. view
  4. theme

They are ordered logically, the same way in which they extends each other. Secure is extended by Lang and so on. The idea is that each core controller adds a layer on functionality to the previous one.

Secure

Provides a means of securing a basic FuelPHP Controller class. As such it directly extends the default Controller. Through the use of public_content a controller can be set to serve content that doesn't need authentication. By default, however, all content is set to need authentication.

Lang

This controller provides core language facilities. Whenever, a controller uses/produces localized strings this controller should be extended at the minimum.

View

Basic view layer controller which is able to inject additional css and js files into the view.

Theme

Provides full-on theming support. By default serves the template/default theme from the themes directory.

Clone this wiki locally