add reception changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user