2009年12月14日星期一

Re: [fw-mvc] Bootstrapping Questions

You can indeed return stuff. It is documented here:

http://framework.zend.com/manual/en/zend.application.theory-of-operation.html#zend.application.theory-of-operation.bootstrap.registry

as the "Resource Registry". Basically, anything that is returned from
an _init*() method will be available in the application's resource registry.

As long as you follow that format, you can effectively use the return
value for whatever you see fit.

-ralph

Jigal sanders wrote:
> I think it totaly depends wether the init function has a return value or
> not.
>
> On Sun, Dec 13, 2009 at 12:29 PM, Andre Fernandes
> <fernandes.andre@gmail.com <mailto:fernandes.andre@gmail.com>> wrote:
>
> Good question, I was to ask the same thing.
>
>
> 2009/12/13 iceangel89 <comet2005@gmail.com <mailto:comet2005@gmail.com>>
>
> when i do a return in an |_init*()| function in my bootstrap
> what does it actually do? so that i can do say a:|$x =
> $this->bootstrap('something');|
> ------------------------------------------------------------------------
> View this message in context: Bootstrapping Questions
> <http://n4.nabble.com/Bootstrapping-Questions-tp962817p962817.html>
> Sent from the Zend MVC mailing list archive
> <http://n4.nabble.com/Zend-MVC-f663775.html> at Nabble.com.
>
>
>
>
> --
> André de Camargo Fernandes
>
>
>
>
>
> --
> Met vriendelijke groet,
>
> Jigal Sanders
> A.J. Ernststraat 739
> 1082 LK Amsterdam
> Mobiel: 06-42111489

没有评论: