On Fri, Sep 28, 2007 at 03:30:23PM +0300, Octavian Rasnita wrote: > Hi, > > I have a I18N module in my Catalyst application and I want to get the path > to the home directory of the application. Is it possible to get it without > hard codding it in that module? > > The module is: > > package MyApp::I18N::ro;
Assuming you can access to $c, I think this is what you want: $c->path_to(’’) It's described in 'perldoc Catalyst' and mentioned in 'perldoc Catalyst::Plugin::ConfigLoader' -- Chisel Wright e: [EMAIL PROTECTED] w: http://www.herlpacker.co.uk/ Any fool can use a computer. Many do. _______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/