I\'ve this controller, and the function read($q) return error Call to undefined function sendRequest()
function read($q)
Call to undefined function sendRequest()
Yes. Problem is in wrong notation. Use:
$this->sendRequest($uri)
Instead. Or
self::staticMethod()
for static methods. Also read this for getting idea of OOP - http://www.php.net/manual/en/language.oop5.basic.php