Calling other function in the same controller?

Try:

return $this->sendRequest($uri);

Since PHP is not a pure object-oriented language, it interprets sendRequest() as an attempt to invoke a globally defined function (just like nl2br() for example), but since your function is part of a class (InstagramController), you need to use $this to point the interpreter in the right direction.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)