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); }
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); }
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])); } } }
public function _initialize() { parent::_initialize(); $this->db = D('Environment'); }
public function _initialize() { parent::_initialize(); $this->db = D('Soft'); }
public function _initialize() { parent::_initialize(); $this->assign('module_name', 'index'); }
public function getArea() { $area = AdminController::getArea(); $this->ajaxReturn($area); //return $area; }