/** * Index constructor. */ public function __construct() { parent::__construct(); $this->address_exists(); #检测用户地址是否存在 $this->load->model('U_blog', 'blog', true); $this->load->model('U_category', 'category', true); $this->load->model('U_tags', 'tags', true); self::$__categroy = $this->__category(); self::$__date_archive = $this->__dateOf(); self::$__reading_top = $this->__redingTop(); self::$__tag_top = $this->__tags(); $this->load->library('pagination'); }
public function __construct() { parent::__construct(); $this->load->model('U_blog', 'blog', true); $this->load->model('User', 'U', true); }
/** * User constructor. */ public function __construct() { parent::__construct(); }