Formatter Model
This commit is contained in:
@@ -280,6 +280,21 @@ class WrenchApi extends BaseController
|
||||
}
|
||||
//-- move to another module end
|
||||
|
||||
$in["pid"] = 100;
|
||||
$out = array();
|
||||
if ( $call_backend == true){
|
||||
// $ret = $wrenchboard->wrenchboard_api($in, $out);
|
||||
$out['internal_return'] = 0; // $ret; // this is reserved array parameter - to be captured and received before you use the out array()
|
||||
}
|
||||
else
|
||||
{
|
||||
$out = $local_out;
|
||||
}
|
||||
|
||||
|
||||
//ResultFormatter
|
||||
$res000 = json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out));
|
||||
|
||||
$res1 = $this->dummyData($raw_array);
|
||||
return $this->response->setJson($res1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user