Exemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     if (config_item('require_login')) {
         \CI::Login()->isLoggedIn('checkout');
     }
     $this->customer = \CI::Login()->customer();
 }
Exemplo n.º 2
0
 public function __construct()
 {
     // ob_start();//解决setcookie Cannot modify header information - headers already sent by
     header("Content-type:text/html;charset=utf-8");
     header("Cache-Control: no-cache, must-revalidate");
     //HTTP 1.1
     header("Pragma: no-cache");
     //HTTP 1.0
     //        header("Cache-Control: max-age=3600");
     parent::__construct();
     //        header(("Last-Modified:" . gmdate("D,d M Y H:i:s") . "GMT"));
     //        if (!isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) || strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) + 32400 < time()) {
     //            header(("Last-Modified:" . gmdate("D,d M Y H:i:s") . "GMT"));
     //        } else {
     //            header("HTTP/1.1 304");
     //            exit;
     //        }
 }
Exemplo n.º 3
0
 function __construct()
 {
     parent::__construct();
     $this->loadModel('Pictures');
     $this->loadModel('Users');
 }
Exemplo n.º 4
0
 function __construct()
 {
     parent::__construct();
     $this->loadModel('Contacts');
 }
Exemplo n.º 5
0
 public function __construct()
 {
     parent::__construct();
     \CI::lang()->load('cod');
 }
Exemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     \CI::load()->model(array('Locations'));
     $this->customer = \CI::Login()->customer();
 }
Exemplo n.º 7
0
 public function __construct()
 {
     parent::__construct();
     $this->customer = \CI::Login()->customer();
 }