Ejemplo n.º 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");
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
 }