yii 使用mongodb扩展的问题
匿名程序员 2014-05-28 10:53:48 mian.php 里配置好
'import'=>array(
'application.models.*',
'application.components.*',
'application.helpers.*',
'ext.YiiMongoDbSuite.*',//添加mongodb扩展
),
'components'=>array(
....
'mongodb' => array(
'class' => 'EMongoDB',
'connectionString' => 'mongodb://127.0.0.1:27017',
'dbName' => 'xiaoao',
'fsyncFlag' => true,
'safeFlag' => true,
'useCursor' => false
),
),
运行时候出来
include(Mongo.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
E:\young\xiaoao\framework\YiiBase.php(427)
415 {
416 include($classFile);
417 if(YII_DEBUG && basename(realpath($classFile))!==$className.'.php')
418 throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array(
419 '{class}'=>$className,
420 '{file}'=>$classFile,
421 )));
422 break;
423 }
424 }
425 }
426 else
427 include($className.'.php');//此行报错
什么意思,请教怎么解决