[Catalyst] [Announce] Catalyst::Runtime 5.7099_04. IMPORTANT;
PLEASE TEST!
kakimoto at tpg.com.au
kakimoto at tpg.com.au
Sat Mar 14 14:51:04 GMT 2009
Problem solved!!
Alright, I tracked down my codes and found in MyApp.pm,
__PACKAGE__->config('default_view' => 'MyApp::View::HTML');
I altered it as per your advise below to
__PACKAGE__->config('default_view' => 'HTML');
and it works! Thank you.
So, to confirm my understanding, the reason why this is working is that
'default_view' will be probing for whatever I assigned to it (in this
case, 'HTML') in the "myApp/lib/View" subdirectory.
By assigning "MyApp::View::HTML" as default_view in the past, my
catalyst app would be confused and hence the warning.
Is my understanding correct?
Thank you
K. akimoto
Quoting Eden Cardim <edencardim at gmail.com>:
> On Fri, Mar 13, 2009 at 11:06 PM, <kakimoto at tpg.com.au> wrote:
> > Guys,
> >
> > can some one please elaborate further on this or point me to a doc
> on
> > cpan to read about?
> > I'm getting a very annoying warning as below and can't figure it
> out.
> > Please help.
> >
> > [warn] Used regexp fallback for $c->model('myApp::View::HTML'),
> which
> > found 'myApp::View::HTML=HASH(0x8ef7b50)'. Relying on regexp
> fallback
>
> You're not using the API correctly, your call should be
> $c->view('HTML')
>
> --
> Eden Cardim Need help with your Catalyst or DBIx::Class
> project?
> Code Monkey
> http://www.shadowcat.co.uk/catalyst/
> Shadowcat Systems Ltd. Want a managed development or deployment
> platform?
> http://edenc.vox.com/ http://www.shadowcat.co.uk/servers/
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
>
More information about the Catalyst
mailing list