[Catalyst] hostname

Ash Berlin ash_cpan at firemirror.com
Wed Jan 9 11:39:22 GMT 2008


On Jan 9, 2008, at 11:12 AM, Octavian Rasnita wrote:

> From: "Ashley" <apv at sedition.com>
>
>> Oh, I was too fast. Blush. You mean without the context object. :(
>
> Yes, that's what I want.
> Can't the context object be accessed in MyApp.pm?
>
> Thanks.
>
> Octavian
>
>

Currently MyApp.pm *is* the context object. The problem is Catalyst  
has no idea of the hostname until it sees the request headers - you  
can have multiple hosts point at the same Catalyst app. Only you know  
what the hostname is - so you'll have to set it in the config.

-ash




More information about the Catalyst mailing list