Re: [Catalyst] Choosing the language

2009-10-13 Thread Larry Leszczynski
> >http://dev.catalyst.perl.org/wiki/wikicookbook/urlpathprefixing > > Thank you Larry. It seems to be what I need. > > I've seen some uses of $self which were not defined in that example. > Shouldn't be __PACKAGE__ instead? Sorry, copy/paste error - $self should not be in there. I've twe

Re: [Catalyst] I'm getting wrong uri_for

2009-10-13 Thread Tomas Doran
Oleg Pronin wrote: I rendered tt2 template from offline script (mail template). On catalyst 5.7 i made a "fake" object i.e. $c = new MyApp(); and set $c->request/response etc. for the code to work as in request with no differences. But the way i initialized Request object is no longer working on

Re: [Catalyst] Choosing the language

2009-10-13 Thread Pavel O. Korovkin
On Tue, Oct 13, 2009 at 4:16 PM, Octavian Râsnita wrote: > From: "Larry Leszczynski" >> >> Hi (again) Octavian - >> >>> Is there a recommendation for storing the language ID in the URL in order >>> to >>> be as easy to get it from there? >>> >>> I want to have unique links for each URL, so I can'

Re: [Catalyst] I'm getting wrong uri_for

2009-10-13 Thread Oleg Pronin
I rendered tt2 template from offline script (mail template). On catalyst 5.7 i made a "fake" object i.e. $c = new MyApp(); and set $c->request/response etc. for the code to work as in request with no differences. But the way i initialized Request object is no longer working on 5.8 because Request

Re: [Catalyst] Choosing the language

2009-10-13 Thread Octavian Râsnita
From: "Larry Leszczynski" Hi (again) Octavian - Is there a recommendation for storing the language ID in the URL in order to be as easy to get it from there? I want to have unique links for each URL, so I can't just put it in the cookies. Using ?lang=EN seems to be the easiest way, although i