controllers/StoreController.php
/**
	 * Creates a new Store model.
	 * If creation is successful, the browser will be redirected to the 'view' page.
	 *
	 * @return mixed
	 */
Creates a new Store model.
If creation is successful, the browser will be redirected to the 'view' page.

@return mixed
Creates a new Store model . If creation is successful the browser will be redirected to the ' view ' page . @return mixed
public function actionCreate(){
		$model = new Store();
		if ($model->load(Yii::$app->request->post()) && $model->save()){
			return $this->redirect(['view', 'id' => $model->id]);
		}
		return $this->render('create', [
			'model' => $model,
		]);
	}
public function actionCreate ( ) { $ model = new Store ( ) ; if ( $ model -> load ( Yii :: $ app -> request -> post ( ) ) && $ model -> save ( ) ) { return $ this -> redirect ( [ 'view' , 'id' => $ model -> id ] ) ; } return $ this -> render ( 'create' , [ 'model' => $ model , ] ) ; }
Creates a new Store model.
Creates a new Store model .