Pages::__construct PHP Метод

__construct() публичный Метод

public __construct ( )
    public function __construct()
    {
        parent::__construct();
        //  calls the constructor
        $this->user->restrict('Site.Pages');
        $this->load->model('Pages_model');
        $this->load->library('permalink');
        $this->load->library('pagination');
        $this->lang->load('pages');
    }

Usage Example

Пример #1
0
 function __construct()
 {
     // Call the Controller constructor
     parent::__construct();
     $this->load->library('session');
     $this->load->helper('url');
 }
All Usage Examples Of Pages::__construct