Example #1
0
 function __construct()
 {
     parent::__construct();
     $this->load->incModel();
     $data = new stdClass();
     $data->datas = $this->model->getlist();
     $this->load->incView($data);
 }
Example #2
0
 function __construct()
 {
     parent::__construct();
     $this->load->incModel();
     $data = new stdClass();
     $controller = $this->uri->segment(1);
     echo $controller;
     $data->datas = $this->model->getBreadCrumb($controller);
     $this->load->incView($data);
 }
Example #3
0
 function __construct()
 {
     parent::__construct();
     $this->load->incModel();
     $login = $this->site->GetSession("login");
     $groupid = $login->group_id;
     $data = new stdClass();
     $data->menus = $this->model->getMenu($groupid);
     //print_r($data); exit;
     $this->load->incView($data);
 }