dbname=testdb','username'=>'demo','password'=>'demo',],],]; 如果在你的应用中应用了不止一个数据库,且你需要给你的AR类使用不同的数据库链接(DBconnection