[Dancer-users] applying the same setting to different routes in different packages
Alexis Sukrieh
sukria at sukria.net
Tue Oct 5 14:46:43 CEST 2010
Le 05/10/2010 14:32, P Kishor a écrit :
> and, I get the following runtime error
>
> Can't call method "SUPER::opts" on an undefined value at
> /Users/punkish/Sites/app/lib/app/app1.pm line 16.
The way you call the opts method matters:
get '/' => sub {
"forum opts : ".to_yaml(FooApp::Forum->opts());
};
If you don't call it that way (Class->method) $self is undef, hence your
error.
--
Alexis Sukrieh
More information about the Dancer-users
mailing list