/** * Gets the HTML of this table. Makes sure there is a decorator added to the table * @return string */ public function getHtml() { if (!$this->columnDecorators && !$this->groupDecorators) { $editAction = $this->basePath . '/' . ScaffoldController::ACTION_EDIT . '/'; $dataDecorator = new DataDecorator($this->meta, $editAction); $dataDecorator = new ZebraDecorator($dataDecorator); $this->addDecorator($dataDecorator, null, true); if ($this->meta->isLocalized()) { $localizeDecorator = new LocalizeDecorator($this->model, $editAction); $this->addDecorator($localizeDecorator); } } return parent::getHtml(); }