diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index 44fc5161..34bfa4b5 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -310,13 +310,14 @@ class WrenchApi extends BaseController $out = array(); if ( $call_backend == true){ - /* $this->load->model('BackendModel'); - $out = array(); - //$ret = $this->BackendModel->wrenchboard_api($in, $out); - // $wrenchboard = new \App\Models\BackendModel(); - // $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() - */ } + $wrenchboard = new \App\Models\BackendModel(); + /* $this->load->model('BackendModel'); + $out = array(); + //$ret = $this->BackendModel->wrenchboard_api($in, $out); + // $wrenchboard = new \App\Models\BackendModel(); + // $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;