38 $key = yii::app()->request->getParam(
'name');
39 $tooltip = Yii::app()->request->getParam(
'value');
40 if (!$key || !$tooltip) {
41 throw new CHttpException(404, Yii::t(
'zii',
'Unauthorized request'));
46 ->update($this->tooltipTable, array(
'tooltip' => $tooltip),
'tooltip_key=:key', array(
':key' => $key))
50 ->insert($this->tooltipTable, array(
'tooltip_key' => $key,
'tooltip' => $tooltip));
65 if ($this->_db === null) {
66 $this->_db = Yii::app()->getComponent(
'db');
67 if (!$this->_db instanceof CDbConnection) {
68 throw new CException(Yii::t(
70 'The "db" application component must be configured to be a CDbConnection object.'