controllers/SiteController.php
/**
     * Displays contact page.
     *
     * @return Response|string
     */
Displays contact page.
@return Response|string
Displays contact page . @return Response|string
public function actionContact()
    {
        $model = Page::getPage('contact');
        if (!$model)  throw new NotFoundHttpException('Такой страницы не существует');
        return $this->render('contact',
            [
                'model' => $model,
            ]);
    }
public function actionContact ( ) { $ model = Page :: getPage ( 'contact' ) ; if ( ! $ model ) throw new NotFoundHttpException ( 'Такой страницы не существует'); return $ this -> render ( 'contact' , [ 'model' => $ model , ] ) ; }
Displays contact page.
Displays contact page .