Having developed my application sufficiently to see it working well so far, I though I should configure it to run under mod_perl. I have used the TTSite helper to generate the templates. The app runs fine using myapp_server.pl, but under mod_perl I get the following:

Couldn't render template "file error - login.tt2: not found"

I have a conventional setup (I think) with MyApp::View::TT config:
__PACKAGE__->config({
 INCLUDE_PATH => [
   MyApp->path_to( 'root', 'src' ),
   MyApp->path_to( 'root', 'lib' )
 ],
 # etc
});

The Apache mod_perl startup params include /path/to/MyApp/lib

Replacing INCLUDE_PATH with full pathnames ie /full/path/to/root/src and /full/path/to/root/lib doesn't help, perhaps suggesting MyApp::View::TT is not being found?

Catalyst::Helper::View::TTSite docs state that 'The view module that the helper creates is automatically configured to locate these templates.' Is there anything I have forgoten to do to port the application to mod_perl that would explain this error?

--
Richard Jones

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to