message no adapter found for application modelI am using zend framework with doctrine. I am getting this error :
"message no adapter found for application model"
I googled it and if I got it to work by including
$db = Zend_Db::factory('Pdo_Mysql', array(
'host' => 'localhost',
'username' => 'root',
'password' => '',
'dbname' => 'zen'
int the init method of the indexcontroller
I don't think I'm supposed to include this in all my controllers, so, how do I fix this?