示例#1
0
 public function __construct()
 {
     parent::__construct();
     if (!$this->session->userdata('id')) {
         redirect('login');
     }
     $this->setting_class();
     $this->load->model('admin/' . $this->name["model"], "data");
     $this->url["add"] = site_url('admin/' . $this->name["class"] . "/add");
     $this->url["view"] = $this->name["class"] . "/view/";
     $this->url["edit"] = $this->name["class"] . "/edit/";
     $this->url["delete"] = $this->name["class"] . "/delete/";
     $this->url["manager"] = site_url('admin/' . $this->name["class"] . "/manager");
     $this->url["search"] = site_url('admin/' . $this->name["class"] . "/search");
 }
示例#2
0
文件: home.php 项目: congnn/betoja
 public function __construct()
 {
     parent::__construct();
 }