Sunday, 25 June 2017

50.try catch

 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

No comments:

Post a Comment