Exemplo n.º 1
0
 /**
  * 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();
 }
Exemplo n.º 2
0
 /**
  * function to initialise the controller
  */
 public function init()
 {
     parent::init();
     $this->getView()->title = Yii::$app->name . ' - ' . 'Topic';
     $this->setLayout();
 }