CAFPE Docs
  • Class

Classes

  • Article_model
  • Articles
  • Auth
  • Auth_controller
  • Bcrypt
  • Hierarchical_controllers
  • Ion_auth
  • Ion_auth_model
  • MY_Controller
  • MY_Lang
  • MY_Model
  • Pages
  • Private_pages
  • Public_controller
  • Seeder
  • Slug
  • User_sessions
  • Users

Functions

  • action_result
  • actions_widget
  • admin_area_buttons
  • base64_current_url_encode
  • base64_url_decode
  • base64_url_encode
  • current_lang
  • jscript_tag
  • lang_switcher
  • logged_in
  • redirect_lang
  • site_url_lang
  • style_tag
 1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 
<?php
defined('BASEPATH') or exit('No direct script access allowed');
/**
 * Class with methods to autoload MY_Controller extensions
 */
class Hierarchical_controllers
{
    /**
    * Register anonymous function below as autoload() implementation
    */
    public function load_app_controllers()
    {
        spl_autoload_register(function ($class) {
            // only non CodeIgniter controllers
            if (strpos($class, 'CI_') !== 0) {
                if (is_readable(APPPATH . 'core/' . $class . '.php')) {
                    require_once(APPPATH . 'core/' . $class . '.php');
                }
            }
        });
    }
}
CAFPE Docs API documentation generated by ApiGen