Example #1
0
 public function __construct()
 {
     parent::__construct();
     kernel::single('base_session')->start();
     $this->setLayoutFlag('cart');
     $this->passport = kernel::single('topm_passport');
 }
Example #2
0
 public function __construct(&$app)
 {
     parent::__construct();
     // 检测是否登录
     if (!userAuth::check()) {
         redirect::action('topm_ctl_passport@signin')->send();
         exit;
     }
     $this->setLayoutFlag('cart');
 }
Example #3
0
 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();
     }
 }
Example #4
0
 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;
     }
 }
Example #5
0
 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');
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->setLayoutFlag('passport');
 }
Example #7
0
 public function __construct($app)
 {
     parent::__construct();
     $this->setLayoutFlag('product');
 }
Example #8
0
 public function __construct()
 {
     parent::__construct();
     $this->setLayoutFlag('topics');
 }