[Catalyst] __PACKAGE__->config question

Kiefer, Sascha sk at intertivity.com
Sat Jul 8 11:13:41 CEST 2006


How about putting it in myapp.yaml ?

> -----Original Message-----
> From: catalyst-bounces at lists.rawmode.org 
> [mailto:catalyst-bounces at lists.rawmode.org] On Behalf Of Ullrich, Ralf
> Sent: Freitag, 7. Juli 2006 10:31
> To: catalyst at lists.rawmode.org
> Subject: [Catalyst] __PACKAGE__->config question
> 
> 
> Hello list,
> 
> I just started playing around with Catalyst and I have a 
> question concerning where to put __PACKAGE__->config() if I 
> want to customize Template Toolkits INCLUDE_PATH.
> 
> On Catalyst::Manual::Tutorial I read:
>  __PACKAGE__->config( name => 'tutorial',
>                       'View::TToolkit' => {
>                           'INCLUDE_PATH' => 
> __PACKAGE__->path_to('templates')
>      }
>   );
> 
> This is what I did, but I always get a "couldn't render 
> /template not found error. If I put this directive in 
> tutorial::View::TToolkit it works.
> 
> The strangest thing about it is: on WindowsNT, where I 
> started using Catalyst (ActivePerl, Catalyst 5.61) it worked 
> when placed in tutorial.pm, under SuSE 9.0 it crashes with 
> the message mentioned above (Catalyst 5.61). The code mimicks 
> exactly that of Catalyst::Manual::Tutorial in both cases.
> 
> What I've been doing wrong?
>  
> Ralf Ullrich
> 
> 
> ______________________
> Ralf Ullrich, M.A.
> Virtuelle Fachbibliothek
> Ibero-Amerikanisches Institut
> Preußischer Kulturbesitz
> Potsdamer Str. 37			
> D-10785 Berlin
> Germany				
> Phone: +49 +30 266-2512
> Fax: +49 +30 266-2503
> E-Mail: ullrich at iai.spk-berlin.de
> http://www.iai.spk-berlin.de
> ______________________
> 
> 
> 
> _______________________________________________
> List: Catalyst at 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/
> 




More information about the Catalyst mailing list