找不到CDataProviderIterator

时间:2013-11-19 15:33:54

标签: yii yii-components

我第一次使用CDataProviderIterator,这个简单的代码:

$dataProvider = new CActiveDataProvider("User");
$iterator = new CDataProviderIterator($dataProvider);
foreach($iterator as $user) {
 echo $user->name."\n";
}

但是当执行到达new CDataProviderIterator($dataProvider);时,它就会失败。

include(CDataProviderIterator.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

/var/www/vhosts/mydomain.com/httpdocs/framework/YiiBase.php(418)

我检查了/ framework / web /中的CDataProviderIterator.php丢失了。 所以我已下载并插入目录。

但我继续得到同样的错误。 我已经检查了所有内容(权限),但似乎Yii没有看到我的新文件。

有人知道我为什么会收到这个错误? 谢谢大家。

0 个答案:

没有答案