public function _initialize()
 {
     parent::_initialize();
     $this->db = D('ShippingRegion');
     $this->region_db = D('Region');
     //$_REQUEST['_sort'] = 1;
 }
Example #2
0
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('Zone');
     $this->rdb = D('Region');
     $_REQUEST['_sort'] = 1;
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D(CONTROLLER_NAME);
     $this->pdb = D('Product');
     $this->ppldb = D('ProductPmList');
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('OrderDelivery');
     $this->odb = D('Order');
     $this->otdb = D('OrderTrack');
 }
Example #5
0
 public function _initialize()
 {
     parent::_initialize();
     Vendor('qiniu.autoload');
     $this->config = C('QINIU_CONFIG');
     $this->auth = new \Qiniu\Auth($this->config['ACCESSKEY'], $this->config['SECRETKEY']);
     $this->user = session('userID');
 }
 function _initialize()
 {
     parent::_initialize();
     $this->session = $_SESSION['user'];
     // 		if (empty ( $this->session ['session_id'] )) {
     // 			$this->error ( '请登录!', "/", 2 );
     // 		}
 }
Example #7
0
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('Product');
     $this->pdb = D('productPm');
     $this->pldb = D('Pm_list');
     $this->ppldb = D('ProductPmList');
 }
Example #8
0
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('Order');
     $this->oddb = D('Order_detail');
     $this->otdb = D('Order_track');
     $this->rdb = D('Record');
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('Shipping');
     $this->srdb = D('Shipping_region');
     $this->sdb = D('Region');
     $_REQUEST['_sort'] = 1;
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->session = $_SESSION['user'];
     if (empty($this->session['mer_session_id'])) {
         $this->error('请登录!', "/", 2);
     }
 }
Example #11
0
 /**
  * 初始化,限定页面,及登录检测
  * @author  gongfei
  *
  * @access  protected
  *
  * @return 跳转页面
  */
 public function _initialize()
 {
     parent::_initialize();
     $loginInfo = is_login();
     // 登录后不可访问的action
     $filterAction = array('login', 'register', 'forgetPwd');
     if (in_array(ACTION_NAME, $filterAction) && $loginInfo) {
         $this->redirect('Ucenter/Index/index');
     }
 }
Example #12
0
 public function _initialize()
 {
     parent::_initialize();
     $this->rdb = D('Record');
     $this->odb = D('Order');
     $this->oddb = D('order_detail');
     $this->mdb = D('Member');
     $this->pdb = D('Product');
     $this->fdb = D('Feedback');
     $this->cdb = D('Member_coupon');
 }
Example #13
0
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('Datas');
     $this->rdb = D('Record');
     $this->odb = D('Order');
     $this->oddb = D('order_detail');
     $this->mdb = D('Member');
     $this->mcdb = D('Member_coupon');
     $this->cdb = D('Collect');
     $this->pdb = D('Product');
     $this->adb = D('Article');
     $datas_menu = array(0 => array('name' => '销售数据', 'action' => 'index'), 1 => array('name' => '订单数据', 'action' => 'order'), 2 => array('name' => '会员数据', 'action' => 'member'), 3 => array('name' => '其他数据', 'action' => 'other'));
     $this->assign('datas_menu', $datas_menu);
 }
Example #14
0
 public function _initialize()
 {
     parent::_initialize();
 }
Example #15
0
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D(CONTROLLER_NAME);
 }
Example #16
0
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('Classify');
 }
Example #17
0
 public function _initialize()
 {
     $this->userid = 1;
     parent::_initialize();
 }
 public function _initialize()
 {
     parent::_initialize();
     Vendor('Pingpp.init');
 }
Example #19
0
 public function _initialize()
 {
     parent::_initialize();
     $this->apikey = 'onCDaQei2hkSdGvaGWSRctIp';
     $this->assign('apikey', $this->apikey);
 }
Example #20
0
    public function _initialize() {
	    parent::_initialize();
	    $this->db = D('Position_data');
    }
Example #21
0
 public function _initialize()
 {
     parent::_initialize();
     $this->db = M('help');
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('OrderTrack');
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('ProductCategory');
 }
Example #24
0
  public function _initialize() {
	parent::_initialize();
	$this->db = D('Zone');
  }
  public function _initialize() {
	parent::_initialize();
	$this->db = D('MemberAddress');
  }
  public function _initialize() {
	parent::_initialize();
	$this->db = D('Shipping');
	$this->srdb = D('ShippingRegion');
	$this->sdb = D('Region');
  }