<?php

namespace app\controllers;

use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use backend\modules\bhsx\models\TeamsForm;
use app\models\RegistrationForm;
use app\models\MyProfileForm;

class HelloModelFormController extends Controller
{

    public function actions()
    {
        return [
            'error' => [
                'class' => 'yii\web\ErrorAction',
            ],
        ];
    }

    public function actionIndex()
    {
        $model = new TeamsForm();
        $data = array (
                'model'=>$model,
            );

        if ($model->load(Yii::$app->request->post('TeamsForm')) && $model->validate()) {

        } else {

        }

        return $this->render('index', $data);
    }
}