[email protected] 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 -------

Hmmm, looks like a poor error message confusing what's going on..

RenderView calls $c->view();   ( with no arguments )
Your warning gets thrown from $c->_comp_search_prefixes() from within the call to view().

I'm guessing you have a single view in myApp but have not configured a default view ( $c->config->{default_view} ) or set current_view or current_view_instance in the stash.

Hope that helps,
Russell.


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

Reply via email to