/** * 新建 * @return {[type]} [description] * @version 1.0 2016-02-27T18:40:09+0800 * @author cnzhangxl@foxmail.com */ public function actionCreate() { $model = new WxApp(['scenario' => 'create']); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->id]); } else { return $this->render('create', ['model' => $model]); } }