Vote Up 0 Vote Down

message no adapter found for application model

I 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'
));
Zend_Db_Table::setDefaultAdapter($db);


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?
flag

Answers


Vote Up 0 Vote Down
You need to add this line into you .htaccess file inside public folder

SetEnv APPLICATION_ENV development. ..
flag | link |

Your Answer

Login before answering

Login with facebook