Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Formatting REST response in JSON
Post: RE: Formatting REST response in JSON

Okay, I see this is a known and fixed bug. https://github.com/codeigniter4/CodeIgniter4/issues/2828 Sorry, I didn't know that GitHub was used for bugs.
3,155 Views
2 Replies
11-05-2020, 06:28 AM
neilpopham
    Thread: Formatting REST response in JSON
Post: RE: Formatting REST response in JSON

Here's how I see the flow: app\Controllers\Salutation.php PHP Code: -- return $this->respond($this->model->findAll()); -- vendor\codeigniter4\framework\system\API\ResponseTrait.php PHP Co...
3,155 Views
2 Replies
11-04-2020, 10:23 AM
neilpopham
    Thread: Formatting REST response in JSON
Post: Formatting REST response in JSON

So, I'm trying to follow the docs here: https://codeigniter.com/user_guide/incoming/restful.html In my extended ResourceController I'm setting $format = 'json', but I always get XML. I've run...
3,155 Views
2 Replies
11-04-2020, 07:51 AM
neilpopham

Theme © iAndrew 2016 - Forum software by © MyBB