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();
.
.
.
}
In reply to Re^2: Can't call method "model" on an undefined value at
by phildeman
in thread Can't call method "model" on an undefined value at
by phildeman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |