protected function renderContent() { $content = $this->renderConfigurationForm(); $content .= parent::renderContent(); return $content; }
/** * Override to add link for meeting creation */ protected function renderContent() { $content = ''; if (RightsUtil::doesUserHaveAllowByRightName('MeetingsModule', MeetingsModule::getCreateRight(), Yii::app()->user->userModel)) { $spanContent = ZurmoHtml::tag('span', array('class' => 'z-label'), Zurmo::t('MeetingsModule', 'Create Meeting')); $linkContent = ZurmoHtml::link($spanContent, $this->getCreateMeetingUrl(), array('class' => 'secondary-button')); $divContent = ZurmoHtml::tag('div', array('class' => 'portlet-toolbar'), $linkContent); $content = ZurmoHtml::tag('div', array('class' => 'view-toolbar-container clearfix'), $divContent); } $content .= parent::renderContent(); return $content; }
/** * Renders the content by adding the scripts necessary for the view. * @return string */ protected function renderContent() { $content = parent::renderContent(); Yii::app()->getClientScript()->render($content); return $content; }