mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
bb52aee900
- 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
13 lines
378 B
PHP
13 lines
378 B
PHP
<?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;
|
|
});
|