我正在使用Yii 1.1,并且在运行根页index.php时
Yii :: createWebApplication($ env-> configWeb)-> run();
它在YiiBase.php(441)中显示错误:"include(Mongo.php): failed to open stream: No such file or directory"
我在这里有数据库配置:
'import' => [
'application.models.*',
'application.components.*',
'application.services.*',
'ext.directmongosuite.components.*',
'ext.YiiMongoDbSuite.*',
],
'behaviors' => [
'edms' => [
'class'=>'EDMSBehavior',
],
],
'modules' => [
],
// application components
'components' => [
'user' => [
'allowAutoLogin' => true,
],
'edms' => [
'class' => 'EDMSConnection',
'dbName' => 'mic',
'server' => 'mongodb://localhost.localdomain:27017',
'options' => [
'replicaSet' => false,
'connect' => true,
'timeout' => 5000,
],
我试图下载php mongo扩展名,将extension = mongo.so添加到/etc/php/5.6/cli/php.ini和/etc/php/5.6/apache2/php中的php.ini文件中。 INI,但仍然无法正常工作!