This is my Bootstrap class.
http://www.nabble.com/file/p25185540/Bootstrap.php Bootstrap.php
I used
http://blog.keppens.biz/2009/06/create-modular-application-with-zend.html
keppens's create modular application Tutorial.
I add this code to boot
protected function _initDb(){
$params=array('host'=>'localhost',
'username'=>'root',
'password'=>'',
'dbname'=>'mydb');
$db=Zend_Db::factory('PDO_MYSQL',$params);
Zend_Db_Table::setDefaultAdapter($db);
}
Is this wrong ? What do I want to do?
--
View this message in context: http://www.nabble.com/Setting-Database-Adapter-form-Bootsrap-class-tp25185540p25185540.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论