public function __construct() { parent::__construct(); if (config_item('require_login')) { \CI::Login()->isLoggedIn('checkout'); } $this->customer = \CI::Login()->customer(); }
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; // } }
function __construct() { parent::__construct(); $this->loadModel('Pictures'); $this->loadModel('Users'); }
function __construct() { parent::__construct(); $this->loadModel('Contacts'); }
public function __construct() { parent::__construct(); \CI::lang()->load('cod'); }
public function __construct() { parent::__construct(); \CI::load()->model(array('Locations')); $this->customer = \CI::Login()->customer(); }
public function __construct() { parent::__construct(); $this->customer = \CI::Login()->customer(); }