Welcome Guest, Not a member yet? Register   Sign In
problem with response and entity
#2

Have you tried "return $this->respond($myentity);"? if $myentity is an associative array, it should be returned as JSON.
If it isn't an array, you could cast it as such, or use the Model's asArray() method as part of the chain when you retrieve the entity.
Reply


Messages In This Thread
problem with response and entity - by keulu - 02-27-2019, 12:01 PM
RE: problem with response and entity - by ciadmin - 02-27-2019, 12:21 PM
RE: problem with response and entity - by keulu - 02-27-2019, 01:24 PM
RE: problem with response and entity - by ciadmin - 02-27-2019, 01:33 PM
RE: problem with response and entity - by keulu - 02-27-2019, 01:39 PM
RE: problem with response and entity - by keulu - 02-27-2019, 01:40 PM
RE: problem with response and entity - by keulu - 02-28-2019, 11:04 AM
RE: problem with response and entity - by keulu - 02-28-2019, 11:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB