$this->responseCreated() method not found |
I was listening this to tutorial about shield and api: https://www.youtube.com/watch?v=0sdbsbOW...G&index=31
At 10:05 the author uses $this->respondCreated(). I am using CI 4.5.1 I cannot see that method. I also do not see it in the documentation. Was that some previous version of am I missing something? Thank you for your help!
Hi,
Method respondCreated() is still provided by Codeigniter 4.5.1. You can see from the link below. https://github.com/datamweb/CodeIgniter4...#L143-L157 Make sure your controller extends from ResourceController. Like below: PHP Code: <?php Or enter ResponseTrait manually: PHP Code: <?php |
Welcome Guest, Not a member yet? Register Sign In |