mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 01:42:17 +00:00
- Moved spl_autoload_register from application/config/config.php to application/config/core_includes.php
- application/config/core_includes.php is included by index.ci.php - Renamed the prefix of the helpers from "fhc_" to "hlp_" - Adapted the helpers includes
This commit is contained in:
@@ -12,10 +12,10 @@ class APIv1_Controller extends REST_Controller
|
||||
parent::__construct();
|
||||
|
||||
// Loads helper message to manage returning messages
|
||||
$this->load->helper('fhc_message');
|
||||
$this->load->helper('hlp_message');
|
||||
|
||||
// Loads helper with generic utility function
|
||||
$this->load->helper('fhc_common');
|
||||
$this->load->helper('hlp_common');
|
||||
|
||||
// Loads permission lib
|
||||
$this->load->library('PermissionLib');
|
||||
|
||||
@@ -12,7 +12,7 @@ class Auth_Controller extends FHC_Controller
|
||||
parent::__construct();
|
||||
|
||||
// Loads authentication helper
|
||||
$this->load->helper('fhc_authentication');
|
||||
$this->load->helper('hlp_authentication');
|
||||
|
||||
// Checks if the caller is allowed to access to this content
|
||||
$this->_isAllowed($requiredPermissions);
|
||||
|
||||
@@ -21,19 +21,19 @@ class FHC_Controller extends CI_Controller
|
||||
$this->_controllerId = null; // set _controllerId as null by default
|
||||
|
||||
// Loads helper message to manage returning messages
|
||||
$this->load->helper('fhc_message');
|
||||
$this->load->helper('hlp_message');
|
||||
|
||||
// Loads helper with generic utility function
|
||||
$this->load->helper('fhc_common');
|
||||
$this->load->helper('hlp_common');
|
||||
|
||||
// Loads helper session to manage the php session
|
||||
$this->load->helper('fhc_session');
|
||||
$this->load->helper('hlp_session');
|
||||
|
||||
// Loads language helper
|
||||
$this->load->helper('fhc_language');
|
||||
$this->load->helper('hlp_language');
|
||||
|
||||
// Loads header helper
|
||||
$this->load->helper('fhc_header');
|
||||
$this->load->helper('hlp_header');
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user