public function actionAddPetAncestry(){
        $model = new PetAncestry();

        $arr = Yii::$app->request->post();
        $model->setAttributes($arr);
        if($model->save()){
            return Helper::format_data(SUCC,null);
        }else{
            return Helper::format_data(PARAM_ERROR,null);
        }
    }

 

相关文章: