add reception changes

This commit is contained in:
2015-09-29 09:02:53 +02:00
parent 2bcaee18de
commit cee219ed14
7 changed files with 128 additions and 28 deletions

View File

@@ -4,10 +4,12 @@ namespace frontend\controllers;
use Yii;
use common\models\Customer;
use frontend\models\ReceptionForm;
use frontend\models\CustomerSearch;
use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\base\Object;
/**
* CustomerController implements the CRUD actions for Customer model.
@@ -29,12 +31,21 @@ class CustomerController extends Controller
];
}
public function actionMain(){
public function actionReception(){
$model = new ReceptionForm();
if ($model->load(Yii::$app->request->post()) && $model->validate()) {
// return $this->redirect(['view', 'id' => $model->id_customer]);
}
return $this->render('main',[]);
return $this->render('reception',['model' => $model]);
}
/**
* Lists all Customer models.
* @return mixed