phildeman has asked for the wisdom of the Perl Monks concerning the following question:
I have been building catalyst apps of a number of years now. This is the first time I am getting an error trying to open a view. When I call the view (there is only one view), I get the following error:
Can't call method "model" on an undefined value at....
The following snippet of code is used in Root.pm,. This is what is generating the error. Again, this is not the first time I am using this catalyst method to call a model.
my $model = $c->mode( 'mypackage' );Has any one ever encounter this before? If yes, can you tell me how you resolved it?
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't call method "model" on an undefined value at
by LanX (Saint) on Jan 08, 2015 at 21:32 UTC | |
by phildeman (Scribe) on Jan 09, 2015 at 15:20 UTC | |
by LanX (Saint) on Jan 09, 2015 at 15:32 UTC | |
by phildeman (Scribe) on Jan 09, 2015 at 16:35 UTC |