I initialized a new Zend Framework project from within Zend Studio.
In bootstrap.php I set a db adapter:
$db = new Zend_Db_Adapter_Pdo_Mysql(array(
'host' => 'localhost',
'username' => 'user',
'password' => 'pass',
'dbname' => 'mydb'
));
In my controller file, I'm creating a new object that extends Zend_Db_Table:
include '/var/www/html/ztest/application/default/models/Browse.php'; (extends Zend_Db_Table)
$mytab = new Browse(array('db' => $db));
I'm getting the error $db is undefined. What is the right way to define the adapter so that it is available to the controller files?
Thanks

