public function onBeforeRender() { parent::onBeforeRender(); $this->assign('counter', $this->counter); $this->setContent($this->list->render()); }