Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     //add the theme to the packages path
     \CI::load()->add_package_path(FCPATH . 'themes/' . config_item('theme') . '/');
     \CI::load()->model(array('Pages', 'Customers', 'Login', 'Categories', 'Coupons', 'Locations', 'Products', 'ProductOptions', 'DigitalProducts'));
     //load in some base information
     \CI::load()->helper('theme');
     \CI::lang()->load('common');
     $this->pages = \CI::Pages()->get_pages_tiered();
     //see if the customer is logged in.
     //if the customer is not logged in, then we'll have a temporary guest customer created.
     $this->isLoggedIn = \CI::Login()->isLoggedIn();
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     \CI::lang()->load('login');
 }
Exemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     \CI::lang()->load('admin_common');
     \CI::auth()->isLoggedIn(uri_string());
 }