예제 #1
0
 public function _initialize()
 {
     parent::_initialize();
     $this->assign('module_name', 'news');
     $keyValue = M('key_value');
     $where['key_value.key'] = 'serverUrl';
     $serverUrlInfo = $keyValue->where($where)->find();
     $serverUrl = $serverUrlInfo['value'];
     $this->assign('serverUrl', $serverUrl);
 }
예제 #2
0
 public function _initialize()
 {
     parent::_initialize();
     $this->assign('module_name', 'user');
     $keyValue = M('key_value');
     $where['key_value.key'] = 'headIcoUrl';
     $headIcoUrlInfo = $keyValue->where($where)->find();
     $headIcoUrl = $headIcoUrlInfo['value'];
     //        var_dump($headIcoUrl);
     //        die();
     $this->assign('headIcoUrl', $headIcoUrl);
 }
예제 #3
0
 public function addRemark()
 {
     $id = I('id');
     $title = I('title');
     $description = I('description');
     $model = new SettingsModel();
     if ($id) {
     } else {
         $data['description'] = $description;
         $data['title'] = $title;
         $data['setting_key'] = 'remark';
         $data['code'] = 'remark';
         $back = $model->updateSettings($data);
         if ($back[0]) {
             $this->ajaxReturn(parent::result(true, '提交成功', false, U('Service/RemarkService/index')));
         } else {
             $this->ajaxReturn(parent::result(false, $back[1]));
         }
     }
 }
예제 #4
0
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('Environment');
 }
예제 #5
0
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('Soft');
 }
예제 #6
0
 public function _initialize()
 {
     parent::_initialize();
     $this->assign('module_name', 'index');
 }
예제 #7
0
 public function getArea()
 {
     $area = AdminController::getArea();
     $this->ajaxReturn($area);
     //return $area;
 }