try{
//edit
$UserData->tip_dismiss_time=$dismiss_time;
$UserData->save();
$aResult['status'] = true;
}
catch (Exception $e) {exit($e->getMessage());
$aResult['status'] = false;
}
echo json_encode($aResult); //to return in tpl
//edit
$UserData->tip_dismiss_time=$dismiss_time;
$UserData->save();
$aResult['status'] = true;
}
catch (Exception $e) {exit($e->getMessage());
$aResult['status'] = false;
}
echo json_encode($aResult); //to return in tpl
No comments:
Post a Comment