I получить следующую ошибку:
Фатальная ошибка: вызов неопределенной функции getAvnet () в C: \ xampp \ htdocs \ ems \ app \ controllers \ questions_controller.php в строке 23
Строка:
$ret = getAvnet('de', $searchstring);
предположительно вызывает
function getAvnet($country, $query)
You need to use
$ret = $this->getAvnet('de', $searchstring);
In general you need to use $this->
when accessing class methods and variables.