Re: [fw-general] Get Resources (DB) from Controllers

2009-05-08 Thread Elvin Şiriyev
> > $bootstrap = $this->getInvokeArg('bootstrap'); > $resource = $bootstrap->getResource('myResource'); > > Sergio Rinaudo > > -- > Date: Thu, 7 May 2009 17:23:42 +0200 > From: pbouli...@alteo.fr > To: fw-g

RE: [fw-general] Get Resources (DB) from Controllers

2009-05-07 Thread Sergio Rinaudo
Or also like this $bootstrap = $this->getInvokeArg('bootstrap'); $resource = $bootstrap->getResource('myResource'); Sergio Rinaudo Date: Thu, 7 May 2009 17:23:42 +0200 From: pbouli...@alteo.fr To: fw-general@lists.zend.com Subject: Re: [fw-genera

Re: [fw-general] Get Resources (DB) from Controllers

2009-05-07 Thread Pierrick Boulière
Sorry, i make a mistake, i forget the "t" in "bootstrap" : $this->getFrontController()->getParam('boo*t*strap')->getResource('HereTheResourceYouNeed') Pierrick Boulière a écrit : In your controller (or controller action), you can get the resource you need by : $this->getFrontController()-

Re: [fw-general] Get Resources (DB) from Controllers

2009-05-07 Thread Pierrick Boulière
In your controller (or controller action), you can get the resource you need by : $this->getFrontController()->getParam('boostrap')->getResource('HereTheResourceYouNeed') example : $this->getFrontController()->getParam('boostrap')->getResource('db') iceangel89 a écrit : how can i access res