public function init() { if ($this->submitButtonText == "") { $this->submitButtonText = Yii::t('WallModule.widgets_ContentFormWidget', 'Submit'); } if ($this->contentContainer == null || !$this->contentContainer instanceof HActiveRecordContentContainer) { throw new CHttpException(500, "No Content Container given!"); } return parent::init(); }
/** * Initializes the navigation widget. * This method mainly normalizes the {@link items} property. * If this method is overridden, make sure the parent implementation is invoked. */ public function init() { // Intercept this controller Yii::app()->interceptor->intercept($this); $this->addItemGroup(array('id' => '', 'label' => '')); // Fire Event if ($this->hasEventHandler('onInit')) { $this->onInit(new CEvent($this)); } return parent::init(); }
public function init() { $assetPrefix = Yii::app()->assetManager->publish(dirname(__FILE__) . '/resources', true, 0, defined('YII_DEBUG')); Yii::app()->clientScript->registerScriptFile($assetPrefix . '/panelMenu.js', CClientScript::POS_BEGIN); return parent::init(); }