Main_Controller::__construct PHP 메소드

__construct() 공개 메소드

Class constructor
public __construct ( )
    public function __construct()
    {
        parent::__construct();
        log_message('info', 'Main Controller Class Initialized');
        // Load permalink
        $this->load->library('permalink');
        // Load template library
        $this->load->library('template');
        $this->load->library('customer');
        $this->load->library('customer_online');
        $this->load->model('Pages_model');
        $this->load->library('location');
    }

Usage Example

예제 #1
0
 public function __construct()
 {
     parent::__construct();
     //  calls the constructor
     $this->load->model('Pages_model');
     $this->lang->load('account/login_register');
 }
All Usage Examples Of Main_Controller::__construct
Main_Controller