7

我收到以下错误:

致命错误:在第 23 行的 C:\xampp\htdocs\ems\app\controllers\queries_controller.php 中调用未定义函数 getAvnet()

该行是:

$ret = getAvnet('de', $searchstring);

据说打电话

function getAvnet($country, $query)
4

2 回答 2

17

你需要使用

$ret = $this->getAvnet('de', $searchstring);

$this->一般在访问类方法和变量时需要使用。

阅读: http: //php.net/manual/en/language.oop5.basic.php

于 2010-08-15T17:30:20.217 回答
-2
$ret = $this->getAvnet('de', $searchstring);
于 2016-04-05T08:56:11.963 回答