[Solar-talk] Accessing locale strings from layouts
Paul M Jones
pmjones at solarphp.com
Thu Jun 14 08:42:33 PDT 2007
On Jun 14, 2007, at 8:13 AM, Andreas Ravnestad wrote:
> 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.
If your controllers descend from Vendor_App, that should be working.
If they descend from Vendor_App_Base, try putting the common strings
in in Vendor/App/Base/Locale.
Let me know if this helps or not.
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list