當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FirstendAction::_initialize方法代碼示例

本文整理匯總了PHP中FirstendAction::_initialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP FirstendAction::_initialize方法的具體用法?PHP FirstendAction::_initialize怎麽用?PHP FirstendAction::_initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在FirstendAction的用法示例。


在下文中一共展示了FirstendAction::_initialize方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('items');
     $api_config = M('items_site')->where(array('code' => 'ftxia'))->getField('config');
     $this->_tbconfig = unserialize($api_config);
 }
開發者ID:leamiko,項目名稱:9k9,代碼行數:7,代碼來源:tmallAction.class.php

示例2: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('items');
     $this->_cate_mod = D('zc_cate');
     $this->assign('nav_curr', 'index');
 }
開發者ID:lzstg,項目名稱:guangchangwu_web,代碼行數:7,代碼來源:zhuantiAction.class.php

示例3: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('items');
     $this->_cate_mod = D('items_cate');
     C('DATA_CACHE_TIME', C('ftx_site_cachetime'));
 }
開發者ID:leamiko,項目名稱:9k9,代碼行數:7,代碼來源:indexAction.class.php

示例4: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->cats_mod = D('article_cate');
     $this->article_mod = M('article');
     $this->cats_list = $this->cats_mod->get_cats();
     $this->assign('acats', $this->cats_list);
 }
開發者ID:leamiko,項目名稱:9k9,代碼行數:8,代碼來源:articleAction.class.php

示例5: _initialize

 public function _initialize()
 {
     parent::_initialize();
     //訪問者控製
     if (!$this->visitor->is_login && !in_array(ACTION_NAME, array('login', 'register', 'binding', 'ajax_check'))) {
         IS_AJAX && $this->ajaxReturn(0, L('login_please'));
         $this->redirect('user/login');
     }
     $this->_curr_menu(ACTION_NAME);
 }
開發者ID:xiaoliumang,項目名稱:zhe800,代碼行數:10,代碼來源:UsersAction.class.php

示例6: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('items');
     //訪問者控製
     if (!$this->visitor->is_login) {
         IS_AJAX && $this->ajaxReturn(0, L('login_please'));
         $this->redirect('user/login');
     }
 }
開發者ID:leamiko,項目名稱:58bitao,代碼行數:10,代碼來源:ajaxAction.class.php

示例7: _initialize

 public function _initialize()
 {
     parent::_initialize();
     if (!$this->visitor->is_login && !in_array(ACTION_NAME, array('login', 'register', 'binding', 'ajax_check'))) {
         $id = I('id', '', 'intval');
         $iid = I('iid', '', 'trim');
         $url = U('jump/index', array('id' => $id, 'iid' => $iid));
         $this->redirect('user/login', array('ret_url' => $url));
     }
 }
開發者ID:leamiko,項目名稱:58bitao,代碼行數:10,代碼來源:jumpAction.class.php

示例8: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D("items");
     $this->_cate_mod = D('items_cate');
     if (false === ($cate_list = F('cate_list'))) {
         $cate_list = $this->_cate_mod->cate_cache();
     }
     $this->assign('cate_list', $cate_list);
     //ио└Я
 }
開發者ID:leamiko,項目名稱:58bitao,代碼行數:11,代碼來源:indexAction.class.php

示例9: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $info = $this->visitor->get();
     $this->assign('info', $info);
     $this->assign('nav_curr', 'gift');
     if (false === ($cate_list = F('score_item_cate_list'))) {
         $cate_list = D('score_item_cate')->cate_cache();
     }
     $this->assign('cate_list', $cate_list);
 }
開發者ID:jmche,項目名稱:qiangmini,代碼行數:11,代碼來源:giftAction.class.php

示例10: _initialize

 public function _initialize()
 {
     parent::_initialize();
     if (!$this->visitor->is_login) {
         IS_AJAX && $this->ajaxReturn(0, L('login_please'));
         $this->redirect('user/login');
     }
     $this->_mod = D('items');
     $this->cid = $_SERVER['HTTP_HOST'];
     $this->_cate_mod = D('items_cate');
     $this->assign('nav_curr', 'index');
 }
開發者ID:xiaoliumang,項目名稱:zhe800,代碼行數:12,代碼來源:shareAction.class.php

示例11: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('items');
     $this->_cate_mod = D('items_cate');
     $this->assign('nav_curr', 'index');
     //訪問者控製
     if (!$this->visitor->is_login && in_array(ACTION_NAME, array('delete', 'comment', 'delcol', 'mycol'))) {
         IS_AJAX && $this->ajaxReturn(0, L('login_please'));
         $this->redirect('user/login');
     }
 }
開發者ID:leamiko,項目名稱:58bitao,代碼行數:12,代碼來源:itemAction.class.php

示例12: _initialize

 protected function _initialize()
 {
     parent::_initialize();
     $this->_name = $this->getActionName();
     import("@.ORG.emchat.Easemob");
     $options['client_id'] = 'YXA6LmIQkGABEeSKuZvpqLd4sw';
     $options['client_secret'] = 'YXA6tfRdlpkrAfO5FlPnzIRRZTQNR-Q';
     $options['org_name'] = 'bingley';
     $options['app_name'] = 'canyoutong';
     $this->_emchat_mod = new Easemob($options);
     $this->_groupid = '153727539213239348';
 }
開發者ID:lzstg,項目名稱:jingcai,代碼行數:12,代碼來源:appAction.class.php

示例13: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->_name = $this->getActionName();
     $uid = I('uid', '0', 'intval');
     if ($uid) {
         $user_log = M('user_log');
         $data['uid'] = $uid;
         $data['module'] = MODULE_NAME;
         $data['action'] = ACTION_NAME;
         $data['add_time'] = time();
         $user_log->add($data);
     }
 }
開發者ID:lzstg,項目名稱:guangchangwu_web,代碼行數:14,代碼來源:appAction.class.php

示例14: _initialize

 public function _initialize()
 {
     parent::_initialize();
     if (!$this->visitor->is_login) {
         IS_AJAX && $this->ajaxReturn(0, L('login_please'));
         $this->redirect('user/login');
     }
     $this->_mod = D('items');
     $this->cid = $_SERVER['HTTP_HOST'];
     $this->_cate_mod = D('items_cate');
     $this->assign('nav_curr', 'index');
     $api_config = M('items_site')->where(array('code' => 'ftxia'))->getField('config');
     $this->_ftxconfig = unserialize($api_config);
 }
開發者ID:lzstg,項目名稱:guangchangwu_web,代碼行數:14,代碼來源:baomingAction.class.php

示例15: _initialize

 public function _initialize()
 {
     parent::_initialize();
     $this->_mod = D('items');
     if (C('ftx_site_cache')) {
         $file = 'items_site';
         if (false === ($this->_ftxconfig = S($file))) {
             $api_config = M('items_site')->where(array('code' => 'ftxia'))->getField('config');
             $this->_ftxconfig = unserialize($api_config);
             S($file, $this->_ftxconfig);
         }
     } else {
         $api_config = M('items_site')->where(array('code' => 'ftxia'))->getField('config');
         $this->_ftxconfig = unserialize($api_config);
     }
 }
開發者ID:leamiko,項目名稱:9k9,代碼行數:16,代碼來源:ajaxAction.class.php


注:本文中的FirstendAction::_initialize方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。