[Solar-talk] Accessing locale strings from layouts

Andreas Ravnestad andreas.ravnestad at gmail.com
Thu Jun 14 08:13:52 PDT 2007


Well it works, but only partly. The locale strings are only available on 
a per-controller basis. So the locale strings in /ctrl_1/action are not 
availble in /ctrl_2/action, seen from the common layouts point of view.

I tried putting the locale file in /Vendor/App/Locale, but to no avail.

-AR


Rodrigo Moraes wrote:
> On 6/14/07, Andreas Ravnestad wrote:
>   
>> I may have asked this before, but I couldn't find it in my archive in
>> any case.
>>
>> How do I access locale strings from a layout?
>>     
>
> It is the same as in a view template: you use the view helpers
> getText()/getTextRaw(). Doesn't it work?
>
> -- rodrigo
> _______________________________________________
> solar-talk mailing list
> solar-talk at lists.solarphp.com
> http://mail.killersoft.com/mailman/listinfo/solar-talk
>
>   



More information about the solar-talk mailing list