-
Notifications
You must be signed in to change notification settings - Fork 3
Core controller hierachy
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.
There are four core controllers at the moment:
- secure
- lang
- view
- 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.
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.
This controller provides core language facilities. Whenever, a controller uses/produces localized strings this controller should be extended at the minimum.
Basic view layer controller which is able to inject additional css and js files into the view.
Provides full-on theming support. By default serves the template/default theme from the themes directory.