Call to undefined method respond() - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Call to undefined method respond() (/showthread.php?tid=77252) |
Call to undefined method respond() - myo - 08-07-2020 Hi, I created a controller as following. It works fine but when I send API request through Postman I get error "Call to undefined method respond()". What mistake I am making? PHP Code: use App\Controllers\BaseController; RE: Call to undefined method respond() - natanfelles - 08-07-2020 You forgot to place the trait call: Code: class Myclass extends BaseController { |