/** * function to initialise the controller */ public function init() { // set page layout and page title $this->setLayout(); $this->getView()->title = Yii::$app->name . ' - ' . 'Section'; parent::init(); }
/** * function to initialise the controller */ public function init() { parent::init(); $this->getView()->title = Yii::$app->name . ' - ' . 'Topic'; $this->setLayout(); }