public function renderBody() { $output = parent::renderBody(); if (!$this->getParent() instanceof self && $this->side == 'admin') { $this->attributes['class'] = 'admin_form'; return $this->getParent()->msg(t('Поля отмеченные * обязательны.'), 'info') . $output; } return $output; }
public function renderBody() { $output = parent::renderBody(); if (!($this->getParent() instanceof self) && Yii::app()->controller instanceof AdminController) { $this->attributes['class'] = 'admin_form'; return $this->getParent()->msg(t('Поля отмеченные * обязательны.'), 'info') . $output; } return $output; }