Esempio n. 1
0
 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;
 }
Esempio n. 2
0
    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;
    }