>
> $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
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
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()-
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