本文整理汇总了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();
}