/** * @inheritdoc */ protected function view() { $view = parent::view(); if (is_array($this->model->{$this->attr})) { $view["value"] = $this->renderFilesView($this->model->{$this->attr}); $view["format"] = "html"; } return $view; }
/** * Конфигурация полядля детального просмотра * @return array */ protected function view() { $view = parent::view(); $view['value'] = $this->model->{$this->attr} ? Yii::t('core', 'Yes') : Yii::t('core', 'No'); return $view; }