示例#1
0
 public function _initialize()
 {
     $this->cateChildList(0, $nb);
     //从父级=0开始递归
     $this->assign('list', $this->cateListAll);
     parent::_initialize();
 }
 function _initialize()
 {
     parent::_initialize();
     $cate = M('AnswerCategory')->where(array('status' => 1, 'pid' => 0))->select();
     $this->jsonUtils = new \Org\Util\JsonUtils();
     $this->assign('cate', $cate);
 }
 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);
 }
 function _initialize()
 {
     parent::_initialize();
     $model = M('city');
     $province = $model->where('pid=0 and status=>1')->getField('id,name');
     $this->assign("province", $province);
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->opname = "基本规定";
     $this->dbname = 'provsionspublish';
     $this->selname = 'uv_getprovsionspublish';
     // gie ni ka s fghrghfghhf
 }
 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');
         }
     }
 }
 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');
 }
 /**
  * 初始化
  * @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
0
 /**
  * @Author: 段涛
  * @检测是否有权限操作
  * @function name _initialize
  */
 public function _initialize()
 {
     parent::_initialize();
     checkPower('8');
     checkPower('29');
 }
示例#10
0
 public function _initialize()
 {
     parent::_initialize('LocalComment');
 }
示例#11
0
 /**
  * @Author: 段涛
  * @检测是否有权限操作
  * @function name _initialize
  */
 public function _initialize()
 {
     parent::_initialize();
     checkPower('6');
     checkPower('15');
 }
 /**
  * 执行过滤
  * @return
  */
 public function _initialize()
 {
     parent::_initialize();
     $this->ensureExistContoller();
 }
示例#13
0
 public function _initialize()
 {
     parent::_initialize();
     $this->ctgModel = M('ctg_data');
     $this->sqModel = M('sq_data');
 }
 /**
  * 初始化数据模型
  * @author Mr.Cong <*****@*****.**>
  */
 public function _initialize()
 {
     parent::_initialize();
     $this->model = D('Attribute');
 }
示例#15
0
 public function _initialize()
 {
     parent::_initialize();
     $this->model = D('Menu', 'Service');
 }
 public function _initialize()
 {
     parent::_initialize();
 }
 /**
  * 初始化数据模型
  * @author Mr.Cong <*****@*****.**>
  */
 public function _initialize()
 {
     parent::_initialize();
     $this->model = D('Notes');
 }
 function _initialize()
 {
     parent::_initialize();
     $cate = M('Category')->where(array('status' => 1, 'pid' => 0))->select();
     $this->assign('cate', $cate);
 }