- 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:
Paolo
2018-07-18 12:04:00 +02:00
parent 5635f1792c
commit bb52aee900
17 changed files with 27 additions and 25 deletions
+12
View File
@@ -0,0 +1,12 @@
<?php
if (! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Autoload custom controllers, models, etc that are present in the application/core directory
*/
spl_autoload_register(function ($class) {
if (substr($class, 0, 3) !== 'CI_' && substr($class, 0, 4) !== 'FHC_')
if (file_exists($file = APPPATH.'core/'.$class.'.php'))
require_once $file;
});