RESTful responds and cookies |
Is there a way when responding with $this->respond() (RESTful API), to both send a json array and also send a cookie?
For example, if I use $this->response(), I can do PHP Code: $this->response->setJSON(['var' => 'value']); is it possible somehow or I can't use RESTful Resource Handling in such cases, I can't find anything about it
Try
PHP Code: $this->response->setCookie($cookie);
|
Welcome Guest, Not a member yet? Register Sign In |