in reply to Re: Can't call method "model" on an undefined value at
in thread Can't call method "model" on an undefined value at
That was a typo. It should have read, $c->model. However, it is typed correctly in the app.
Below is a snippet of code from Root.pm
sub myform :Local {
my ($self, $c) = @_;
my $model = $c->model( 'mypackage' );
my $results = $model->get_my_results();
.
.
.
}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Can't call method "model" on an undefined value at
by LanX (Saint) on Jan 09, 2015 at 15:32 UTC | |
by phildeman (Scribe) on Jan 09, 2015 at 16:35 UTC |