public function actionUpdate($id)
{
$model = ARBizShop::model()->findByPk($id);
if ($model == NULL) {
$this->go('该分店不存在', Yii::app()->request->urlReferrer);
}
$model->setScenario('sell');
$this->performAjaxValidation($model);
if (Yii::app()->request->isPostRequest && !empty($_POST['ARBizShop'])) {
$model->attributes = $_POST['ARBizShop'];
if ($model->save()) {
$this->go('<strong>分店修改成功</strong>', $_POST['return_url'], 'success');
}
}
$this->render('update', array('model' => $model));
}