本文整理匯總了PHP中FirstendAction類的典型用法代碼示例。如果您正苦於以下問題:PHP FirstendAction類的具體用法?PHP FirstendAction怎麽用?PHP FirstendAction使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了FirstendAction類的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);
}
示例2: _initialize
public function _initialize()
{
parent::_initialize();
$this->_mod = D('items');
$this->_cate_mod = D('zc_cate');
$this->assign('nav_curr', 'index');
}
示例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'));
}
示例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);
}
示例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);
}
示例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');
}
}
示例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));
}
}
示例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);
//ио└Я
}
示例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);
}
示例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');
}
示例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');
}
}
示例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';
}
示例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);
}
}
示例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);
}
示例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);
}
}