2009年8月11日星期二

Re: [fw-mvc] How to get resource in plugin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqBq2cACgkQkCAxuhXMpxX9JgCfcAoTHaXGXxMbBikV/EaFkdR/
uvAAmwRevbrwxspbOtIe0CHKmk1bfoTu
=ujRN
-----END PGP SIGNATURE-----
Vincent Louvet napsal(a):
> Hi,
>
> I'm used to do it like that:
>
> $front = Zend_Controller_Front::getInstance();
> $bootstrap = $front->getParam('bootstrap');
> $resource = $bootstrap->getResource('resourcename');
>
> Best,
>

Hi Vincent,

Now i'm using e.g.:
$view =
Zend_Controller_Front::getInstance()->getParam('bootstrap')->getResource('view');

没有评论: