/**
  * Renders common page view.
  * @param string $url relative url from route.
  * @return string
  * @throws \yii\web\HttpException
  */
 public function actionView($url = '/')
 {
     /**
      * @var Page $model
      */
     if (!($model = Page::childClass(true)->getCurrentPage($url))) {
         throw new \yii\web\HttpException(404, \Yii::t('modules/page', "Page not found"));
     }
     if ($model->layout) {
         $this->layout = $model->layout;
     }
     return $this->render('view', compact('model'));
 }