src/modules/page/controllers/PageController.php
public function actionFrontend ($id)
		{
			$page = Page::find()->where([ 'guid' => $id ])->one();

			if ($page === null)
			{
				throw new \yii\web\HttpException(404);
			}
			$this->setTitle($page->title);
			$this->data('page', $page);
			$this->_tpl = '@pageViews/page';
		}
public function actionFrontend ($id)
		{
			$page = Page::find()->where([ 'guid' => $id ])->one();

			if ($page === null)
			{
				throw new \yii\web\HttpException(404);
			}
			$this->setTitle($page->title);
			$this->data('page', $page);
			$this->_tpl = '@pageViews/page';
		}
public function actionFrontend ( $ id ) { $ page = Page :: find ( ) -> where ( [ 'guid' => $ id ] ) -> one ( ) ; if ( $ page === null ) { throw new \ yii \ web \ HttpException ( 404 ) ; } $ this -> setTitle ( $ page -> title ) ; $ this -> data ( 'page' , $ page ) ; $ this -> _tpl = '@pageViews/page' ; }
View frontend page

@param $id page
View frontend page