-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
There is a translate view helper which you may want to look at.
...................................
: ___ _ ___ ___ ___ _ ___ :
: | \ /_\ / __| _ \ _ (_) \ :
: | |) / _ \\__ \ _/ / | |) | :
: |___/_/:\_\___/_| |_|_\_|___/ :
:........:........................:
: Web : http://www.dasprids.de :
: E-mail : [email protected] :
: Jabber : [email protected] :
: ICQ : 105677955 :
:........:........................:
vadim gavrilov schrieb:
> Problem:
>
> Inside a controller i use:
>
> echo $this->lang->_('RE0');
>
> where $this->lang is the zend_translate_adapter and it prints what it
> should "wefef" inside a view script i do the same thing: <?php echo
> $this->lang->_('RE0'); ?> and it prints 'RE0' ? Any idea why this will
> work in the controller class but not inside a view?
>
> Thanks.
>
> On Tue, Mar 10, 2009 at 10:57 AM, vadim gavrilov <[email protected]
> <mailto:[email protected]>> wrote:
>
> Ahh never mind just saw the assign method.
>
> Thanks.
>
>
> On Tue, Mar 10, 2009 at 10:56 AM, vadim gavrilov <[email protected]
> <mailto:[email protected]>> wrote:
>
> If i have an object $lang that i use as $this->lang within a
> class scope, How would i add it to the registry/anywhere to be
> able to use the same object $this->lang inside views scripts ?
>
> Thanks.
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
>
>
>
>
>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
>
>
>
>
>
>
>
> --
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
>
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkm2R6MACgkQ0HfT5Ws789DOtgCgxV+//zMTFoi1LayVmKxf0nFl
yBEAniRvdNATVJdMtDeuZ+CsdJr763oP
=VkEX
-----END PGP SIGNATURE-----