in reply to Catylst + SQL Caught exception in MusicApp::Controller::Album->list "Can't call method "all" on an undefined value at C:\MusicApp\lib/MusicApp/Controller/Album.pm

Tl;Dr , but

> What can be wrong within this exception :   $c->stash(albums => [$c->stash->{resultset}->all]);

$c->stash->{resultset} is undef

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

  • Comment on Re: Catylst + SQL Caught exception in MusicApp::Controller::Album->list "Can't call method "all" on an undefined value at C:\MusicApp\lib/MusicApp/Controller/Album.pm
  • Select or Download Code

Replies are listed 'Best First'.
Re^2: Catylst + SQL Caught exception in MusicApp::Controller::Album->list "Can't call method "all" on an undefined value at C:\MusicApp\lib/MusicApp/Controller/Album.pm
by *alexandre* (Scribe) on Nov 23, 2024 at 21:13 UTC
    Finaly I followed this tutorial https://www.shieldui.com/blogs/perl-catalyst-integration-tutorial Thanks