function get_creditorlist() { $creditorList = array(); $creditorList = Creditor_model::loadCreditorList(); $this->response(json_encode($creditorList)); }
public static function search($data = null) { // -- Search for a creaditor // ------------------------- if ($data == null) { return; } return \Creditor_model::search($data); }