/** * Registration Controller for Auth purpose * * Maps to the following URL * http://example.com/index.php/registration * - or - * http://example.com/index.php/registration/index */ function __construct() { parent::__construct(); $this->load->library('form_validation'); $this->enqueue->css('bootstrap.min'); $this->enqueue->css('AdminLTE.min'); $this->enqueue->css('skins/_all-skins.min'); /** * Enqueueing Js **/ $this->enqueue->js('plugins/jQuery/jQuery-2.1.4.min'); $this->enqueue->js('bootstrap.min'); $this->enqueue->js('plugins/iCheck/icheck.min'); $this->enqueue->js('app.min'); }
/** * Registration Controller for Auth purpose * * Maps to the following URL * http://example.com/index.php/registration * - or - * http://example.com/index.php/registration/index */ function __construct() { parent::__construct(); $this->load->library('notice'); $this->load->library('form_validation'); // loading form_validation library Enqueue::enqueue_css('bootstrap.min'); Enqueue::enqueue_css('AdminLTE.min'); Enqueue::enqueue_css('skins/_all-skins.min'); /** * Enqueueing Js **/ Enqueue::enqueue_js('plugins/jQuery/jQuery-2.1.4.min'); Enqueue::enqueue_js('bootstrap.min'); Enqueue::enqueue_js('plugins/iCheck/icheck.min'); Enqueue::enqueue_js('app.min'); Modules::load(MODULESPATH); }
/** * Admin controller * * Maps to the following URL * http://example.com/index.php/admin * - or - * http://example.com/index.php/admin/index * - or - * this controller is in other words admin dashboard. */ public function __construct() { parent::__construct(); // $this->output->enable_profiler(TRUE); // $this->output->enable_profiler(TRUE); // All those variable are not required for option interface // Special assets loading for dashboard // include static libraries include_once LIBPATH . '/Menu.php'; include_once LIBPATH . '/Notice.php'; $this->load->model('gui'); $this->load->model('update_model'); // load update model @since 3.0 // Loading Admin Menu // this action was move to Dashboard controler instead of aside.php output file. // which was called every time "create_dashboard_pages" was triggered $this->events->do_action('before_dashboard_menus'); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/sing-in * - or - * http://example.com/index.php/welcome/sing-in */ function __construct() { parent::__construct(); $this->load->library('form_validation'); $this->load->model('login_model'); }
/** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function __construct() { parent::__construct(); $this->reserved_controllers = $this->config->item('reserved_controllers'); // Get Reserved Controllers }
/** * Login out page * */ function __construct() { parent::__construct(); }