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