37 lines
602 B
PHP
37 lines
602 B
PHP
<?php
|
|
|
|
namespace app\controllers;
|
|
|
|
use Yii;
|
|
use yii\filters\AccessControl;
|
|
use yii\web\Controller;
|
|
use yii\web\Response;
|
|
use yii\filters\VerbFilter;
|
|
use app\models\LoginForm;
|
|
use app\models\ContactForm;
|
|
|
|
class SiteController extends Controller
|
|
{
|
|
/**
|
|
* Displays homepage.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function actionIndex()
|
|
{
|
|
return $this->render('index');
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function actions()
|
|
{
|
|
return [
|
|
'error' => [
|
|
'class' => 'yii\web\ErrorAction',
|
|
],
|
|
];
|
|
}
|
|
}
|