public function __construct() { parent::__construct(); kernel::single('base_session')->start(); $this->setLayoutFlag('cart'); $this->passport = kernel::single('topm_passport'); }
public function __construct(&$app) { parent::__construct(); // 检测是否登录 if (!userAuth::check()) { redirect::action('topm_ctl_passport@signin')->send(); exit; } $this->setLayoutFlag('cart'); }
public function __construct($app) { parent::__construct(); $this->app = $app; $this->setLayoutFlag('shopcenter'); if (!$this->__checkShop(input::get('shop_id'))) { $pagedata['shopid'] = input::get('shop_id'); $this->page('topm/shop/error.html', $pagedata)->send(); } }
public function __construct(&$app) { parent::__construct(); theme::setNoindex(); theme::setNoarchive(); theme::setNofolow(); theme::prependHeaders('<meta name="robots" content="noindex,noarchive,nofollow" />\\n'); $this->title = app::get('topm')->_('订单中心'); // 检测是否登录 if (!userAuth::check()) { redirect::action('topm_ctl_passport@signin')->send(); exit; } }
public function __construct(&$app) { parent::__construct(); kernel::single('base_session')->start(); if (!$this->action) { $this->action = 'index'; } $this->action_view = $this->action . ".html"; // 检测是否登录 if (!userAuth::check()) { redirect::action('topm_ctl_passport@signin')->send(); exit; } $this->limit = 4; $this->passport = kernel::single('topm_passport'); }
public function __construct() { parent::__construct(); $this->setLayoutFlag('passport'); }
public function __construct($app) { parent::__construct(); $this->setLayoutFlag('product'); }
public function __construct() { parent::__construct(); $this->setLayoutFlag('topics'); }