public function run() { if (count($this->roles) == 0 || Yii::$app->user->identity->in($this->roles)) { echo Html::endTag('div') . Html::endTag('div'); // .col-* } }
public function run() { $content = empty($this->content) ? '' : $this->content; $tail = Html::endTag('div'); // .box-body if (!empty($this->footer)) { $tail .= Html::tag('div', $this->footer, ['class' => 'box-footer']); } $tail .= Html::endTag('div'); // .box ends return $content . $tail; }