Base_Controller

This controller provides a controller that your controllers can extend from.  This allows any tasks that need to be performed sitewide to be done in one place.

Since it extends from MX_Controller, any controller in the system can be used in the HMVC style, using modules::run().  See the docs at: https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home for more detail on the HMVC code used in Bonfire.

Extends

MX_Controller

Package

MY_Controller

Summary
Base_ControllerThis controller provides a controller that your controllers can extend from.
Variables
$previous_pageStores the previously viewed page’s complete URL.
$requested_pageStores the page requested.
Front_ControllerThis class provides a common place to handle any tasks that need to be done for all public-facing controllers.
Authenticated_ControllerProvides a base class for all controllers that must check user login status.
Admin_ControllerThis class provides a base class for all admin-facing controllers.

Variables

$previous_page

protected $previous_page

Stores the previously viewed page’s complete URL.

$requested_page

protected $requested_page

Stores the page requested.  This will sometimes be different than the previous page if a redirect happened in the controller.

Front_Controller

This class provides a common place to handle any tasks that need to be done for all public-facing controllers.

Extends

Base_Controller

Authenticated_Controller

Provides a base class for all controllers that must check user login status.

Extends

Base_Controller

Admin_Controller

This class provides a base class for all admin-facing controllers.  It automatically loads the form, form_validation and pagination helpers/libraries, sets defaults for pagination and sets our Admin Theme.

Extends

Authenticated_controller

protected $previous_page
Stores the previously viewed page’s complete URL.
protected $requested_page
Stores the page requested.
Close