zphp icon indicating copy to clipboard operation
zphp copied to clipboard

Add Mongodb

Open loyating opened this issue 9 years ago • 2 comments

loyating avatar Feb 20 '16 08:02 loyating

最好能说明一下使用方法。

shenzhe avatar Apr 28 '16 04:04 shenzhe

//数据库配置-Mongodb 'mongo' => [ 'mongo_hostbase' => '127.0.0.1:27017' , 'mongo_database' => 'test' , 'mongo_username' => 'root' , 'mongo_password' => 'root' , 'mongo_persist' => FALSE ,//废弃 'mongo_persist_key' => 'persist' , 'mongo_replica_set' => FALSE , 'mongo_query_safety' => 'w' , 'mongo_suppress_connect_error' => FALSE , 'mongo_host_db_flag' => FALSE ] 使用: ZPHP\Core\Factory::getInstance('ZPHP\Manager\Mongo' , ZConfig::get('mongo'))

loyating avatar May 10 '16 02:05 loyating