本文整理匯總了PHP中CommonController::_initialize方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonController::_initialize方法的具體用法?PHP CommonController::_initialize怎麽用?PHP CommonController::_initialize使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CommonController
的用法示例。
在下文中一共展示了CommonController::_initialize方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _initialize
public function _initialize()
{
$this->cateChildList(0, $nb);
//從父級=0開始遞歸
$this->assign('list', $this->cateListAll);
parent::_initialize();
}
示例2: M
function _initialize()
{
parent::_initialize();
$cate = M('AnswerCategory')->where(array('status' => 1, 'pid' => 0))->select();
$this->jsonUtils = new \Org\Util\JsonUtils();
$this->assign('cate', $cate);
}
示例3:
function _initialize()
{
parent::_initialize();
$config_path = 'Public/ueditor/config.json';
$this->path = __ROOT__ . '/Uploads/';
$this->CONFIG = json_decode(preg_replace("/\\/\\*[\\s\\S]+?\\*\\//", "", file_get_contents($config_path)), true);
}
示例4: M
function _initialize()
{
parent::_initialize();
$model = M('city');
$province = $model->where('pid=0 and status=>1')->getField('id,name');
$this->assign("province", $province);
}
示例5: _initialize
public function _initialize()
{
parent::_initialize();
$this->opname = "基本規定";
$this->dbname = 'provsionspublish';
$this->selname = 'uv_getprovsionspublish';
// gie ni ka s fghrghfghhf
}
示例6: _initialize
public function _initialize()
{
parent::_initialize();
if ($this->memberID <= 0 || empty($this->member_Info)) {
if (IS_AJAX) {
$this->error('Login required');
} else {
$this->redirect($this->referer ? $this->referer : 'Admin/login');
}
}
}
示例7: _initialize
public function _initialize()
{
parent::_initialize();
$this->StudentModel = D('Student');
$this->PostSubscribeModel = D('PostSubscribe');
$this->EducationModel = D('Education');
$this->PracticeModel = D('Practice');
$this->PrizeExperienceModel = D('PrizeExperience');
$this->ActivityExperienceModel = D('ActivityExperience');
$this->StudentCertificateModel = D('StudentCertificate');
$this->JobExperienceModel = D('JobExperience');
$this->EnStudentController = A('EnStudent');
$this->ResumeModel = D('Resume');
}
示例8: _initialize
/**
* 初始化
* @return
*/
public function _initialize()
{
parent::_initialize();
// 開啟令牌
if (ACTION_NAME == 'index') {
C('TOKEN_ON', true);
}
// 需要登錄才能訪問的action
$filterLogin = array('logout');
if (in_array(ACTION_NAME, $filterLogin)) {
$this->filterLogin();
}
// 登錄後不可訪問的action
$filterAction = array('index', 'login');
if (in_array(ACTION_NAME, $filterAction) && $this->hasLogin()) {
return $this->redirect('Index/index');
}
}
示例9: _initialize
/**
* @Author: 段濤
* @檢測是否有權限操作
* @function name _initialize
*/
public function _initialize()
{
parent::_initialize();
checkPower('8');
checkPower('29');
}
示例10: _initialize
public function _initialize()
{
parent::_initialize('LocalComment');
}
示例11: _initialize
/**
* 執行過濾
* @return
*/
public function _initialize()
{
parent::_initialize();
$this->ensureExistContoller();
}
示例12: _initialize
public function _initialize()
{
parent::_initialize();
$this->ctgModel = M('ctg_data');
$this->sqModel = M('sq_data');
}
示例13: _initialize
/**
* 初始化數據模型
* @author Mr.Cong <i@cong5.net>
*/
public function _initialize()
{
parent::_initialize();
$this->model = D('Attribute');
}
示例14: _initialize
public function _initialize()
{
parent::_initialize();
$this->model = D('Menu', 'Service');
}
示例15: _initialize
public function _initialize()
{
parent::_initialize();
}