add reception changes

This commit is contained in:
2015-09-29 17:27:31 +02:00
parent 8e235a8d3c
commit 2b57f95b1e
4 changed files with 71 additions and 29 deletions

View File

@@ -10,6 +10,7 @@ use yii\web\Controller;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\base\Object;
use common\models\Card;
/**
* CustomerController implements the CRUD actions for Customer model.
@@ -32,12 +33,10 @@ class CustomerController extends Controller
}
public function actionReception(){
$model = new ReceptionForm();
if ($model->load(Yii::$app->request->post()) && $model->validate()) {
// return $this->redirect(['view', 'id' => $model->id_customer]);
if ($model->load(Yii::$app->request->get()) && $model->validate()) {
$model->readCard();
}