Fix customer backend forms , fix site\index

backend create\update customer forms must display the same as the frontend
forms

site\index action should be friendly and related to this app
This commit is contained in:
2015-11-02 18:41:36 +01:00
parent ed1e0b6c2a
commit b6b5193120
10 changed files with 53 additions and 113 deletions

View File

@@ -79,6 +79,8 @@ class CustomerController extends \backend\controllers\BackendController
throw new NotFoundHttpException('The requested page does not exist.');
}
$model->birthdate= isset($model->birthdate ) ? Yii::$app->formatter->asDate($model->birthdate) :'';
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id_customer]);