You can always just set it in Zend_Registry too. In my bootstrap, I save
it to the registry after I make my $db object so that I have access to
it on the off-chance my Controllers need to run a direct DB query.

Chris

Joseph Crawford wrote:
> In my index.php bootstrap file I setup the database connection into a
> variable $db.  Now I need to access this in other controllers.  This
> seems like a dumb question to me but do I need to global $db; before I
> can access it in the indexAction method of the controller or is it in
> the global scope by default?
> 
> Thanks,
> Joseph Crawford
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to