[Catalyst] C:P:DefaultEnd and MyApp::Controller::Root::end()
Matt S Trout
dbix-class at trout.me.uk
Mon Jun 5 21:47:38 CEST 2006
Bernhard Graf wrote:
> Matt S Trout wrote:
>
>> Just move the use base on Catalyst::Plugin::DefaultEnd to
>> MyApp::Controller::Root.
>
> You mean like this?
>
> package MyApp::Controller::Root;
> use base qw/Catalyst::Controller Catalyst::Plugin::DefaultEnd/;
>
> sub end : Private {
> my ($self, $c) = @_;
> ...
> $c->NEXT::end($c);
$self->NEXT::end($c);
> }
>
>> Works fine.
>
> Nope.
> Now Catalyst::Plugin::DefaultEnd::end() is not called.
See above. Calling the method on the correct object usually helps :)
More information about the Catalyst
mailing list