[Catalyst] Using path_to()

2009-04-29 Thread Octavian Rasnita
Hi, In which components of a Catalyst app can I use __PACKAGE__-path_to()? I've seen that if I use in a MyApp/View/TT.pm module __PACKAGE__-config( COMPILE_DIR = __PACKAGE__-path_to('templates'), ); it gives an error like: Can't locate object method path_to via package MyApp::View::TT at

Re: [Catalyst] Using path_to()

2009-04-29 Thread Tomas Doran
Octavian Rasnita wrote: Can't locate object method path_to via package MyApp::View::TT at D:/web/MyApp/scr ipt/../lib/MyApp/View/TT.pm line 7. It works if I use MyApp-path_to() instead... Generally, it would be also very helpful if we could find which methods are offered by a certain $c

Re: [Catalyst] Using path_to()

2009-04-29 Thread J. Shirley
2009/4/29 Octavian Rasnita orasn...@gmail.com Hi, In which components of a Catalyst app can I use __PACKAGE__-path_to()? I've seen that if I use in a MyApp/View/TT.pm module __PACKAGE__-config( COMPILE_DIR = __PACKAGE__-path_to('templates'), ); it gives an error like: Can't locate