$_POST=$this->request->getJSON(true); $rules=[ "name"=>"required", ]; if($this->validate($rules)) return "ok"; else return "error";
(11-19-2020, 04:44 PM)InsiteFX Wrote: And where are you getting the json data from? Also you should not be assigning it to the $_POST.