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 _initialize()
 {
     parent::_initialize();
     $this->db = D('Environment');
 }
Beispiel #4
0
 public function _initialize()
 {
     parent::_initialize();
     $this->db = D('Soft');
 }
 public function _initialize()
 {
     parent::_initialize();
     $this->assign('module_name', 'index');
 }