[Catalyst] Getting strange warning each time a request is made to myApp

Greg Matheson drbean at freeshell.org
Sat Mar 14 02:36:15 GMT 2009


On Sat, 14 Mar 2009, kakimoto at tpg.com.au wrote:

> > > ----- extract START -------

> > > [warn] Used regexp fallback for $c->model('myApp::View::HTML'),
> > > which
> > > found 'myApp::View::HTML=HASH(0x8ef7b50)'. Relying on regexp
> > > fallback
> > > behavior for component resolution is unreliable and unsafe. You
> > > probably
> > > meant $c->model('myApp::View::HTML=HASH(0x8ef7b50)') instead of
> > > $c->model{'myApp::View::HTML'}, but if you really wanted to
> > search,
> > > pass
> > > in a regexp as the argument like so:
> > $c->model(qr/myApp::View::HTML/)
> > > at
> > > /usr/local/lib/perl5/site_perl/5.8.9/Catalyst/Action/RenderView.pm
> > > line 56
> > > [debug] Rendering template "index.tt2"
> > > [debug] Applying HTML page layout wrappers to index.tt2

> > > ----- extract END -------

You're not calling $c->model('Table') instead of 
$c->model('DB::Table') are you?



More information about the Catalyst mailing list