components=>array( 'db' => array( ... ... ), 'mydb'=>array( 'class' => 'myDbConnection', 'connectionString' => 'mysql:host=localhost;dbname=test;charset=utf8', 'tablePrefix' => 'cdb_', 'username' => 'root', ), ), 修改默认的db组件所使用的类: components=>array( 'db' => array( 'class' => 'myDbConnection', ... ... ), ),
简要剖析PHP的Yii框架的组件化机制的基本知识(3)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/b42202bd76a03b6573d321ba64ab3433.html