<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Class Base
*
* File must be saved as MY_Controller.php in
* ./application/core/MY_Controller.php
*
* Place all your code that is used in all controllers
* in this controller and then extend all controllers with Base
*
* class Your_Controller extends Base
*
*/
class Base extends CI_Controller
{
/**
* Class properties go here.
* -------------------------------------------------------------------
* public, private, protected, static and const.
*/
// -------------------------------------------------------------------
/**
* __construct ()
* -------------------------------------------------------------------
*
* Class Constructor
*
* NOTE: Not needed if not setting values or extending a Class.
*/
public function __construct()
{
parent::__construct();
log_message('debug', "Base Controller Class Initialized");
}
/**
* index ()
* -------------------------------------------------------------------
*
*/
public function index()
{
}
// -------------------------------------------------------------------
} // End of Base Controller Class.
/**
* Class Backend
*/
class Backend extends Base
{
/**
* Class properties go here.
* -------------------------------------------------------------------
* public, private, protected, static and const.
*/
// -------------------------------------------------------------------
/**
* __construct ()
* -------------------------------------------------------------------
*
* Class Constructor
*
* NOTE: Not needed if not setting values or extending a Class.
*/
public function __construct()
{
parent::__construct();
log_message('debug', "Backend Controller Class Initialized");
}
/**
* index ()
* -------------------------------------------------------------------
*
*/
public function index()
{
}
// -------------------------------------------------------------------
} // End of Backend Controller Class.
/**
* Class Frontend
*/
class Frontend extends Base
{
/**
* Class properties go here.
* -------------------------------------------------------------------
* public, private, protected, static and const.
*/
// -------------------------------------------------------------------
/**
* __construct ()
* -------------------------------------------------------------------
*
* Class Constructor
*
* NOTE: Not needed if not setting values or extending a Class.
*/
public function __construct()
{
parent::__construct();
log_message('debug', "Frontend Controller Class Initialized");
}
/**
* index ()
* -------------------------------------------------------------------
*
*/
public function index()
{
}
// -------------------------------------------------------------------
} // End of Frontend Controller Class.
// End of MY_Controller Controller Class.
/**
* -----------------------------------------------------------------------
* Filename: MY_Controller.php
* Location: ./application/core/MY_Controller.php
* -----------------------------------------------------------------------
*/