public function __construct() { parent::__construct(4); $this->load->model('Admin'); $this->load->model('SubscriptionPlan'); $this->load->model('RentalShop'); $this->load->model('Category'); $this->Admin->setId($this->session->userdata('admin_id')); LibsLoader(); }
public function __construct() { parent::__construct(); $check = $this->isLogin(); if ($check['isLogin'] && $this->uri->segments[1] != 'logout') { redirect($check['typeLogin']); exit; } $this->load->model('Lessee'); LibsLoader(); }
public function __construct() { parent::__construct(); LibsLoader(); $this->load->model('Lessee'); $this->load->model('Category'); $this->load->model('RentalShop'); $this->load->model('AndroidModel'); $this->load->model('MyInterest'); $this->load->model('MyShop'); $this->load->library('MyPusher'); $this->Lessee->setId($this->session->userdata('lessee_id')); $this->MyShop->setLesseeId($this->session->userdata('lessee_id')); $this->MyInterest->setLesseeId($this->session->userdata('lessee_id')); }
public function __construct() { parent::__construct(1); LibsLoader(); $this->load->model('Lessee'); $this->load->model('RentalShop'); $this->load->model('Item'); $this->load->model('MyShop'); $this->load->model('MyInterest'); $this->load->model('Category'); $this->load->model('Subscriber'); $this->load->model('Message'); $this->load->model('Notification'); $this->load->library('MyPusher'); $this->load->library('Truncate'); $this->Lessee->setId($this->session->userdata('lessee_id')); $this->MyShop->setLesseeId($this->session->userdata('lessee_id')); $this->MyInterest->setLesseeId($this->session->userdata('lessee_id')); }