[Catalyst] auto method never triggered
Julien Sobrier
julien at sobrier.net
Sat Oct 31 05:10:38 GMT 2009
Hello,
I was trying to use auto and begin in 2 Controllers, Root.pm and Admin.pm:
package MyApp::Controller::Root;
sub begin :Private {
my ($self, $c) =3D @_;
$c->log->debug('root begin');
}
sub auto :Private {
my ($self, $c) =3D @_;
$c->log->debug('root auto');
}
[...]
package MyApp::Controller::Admin;
sub begin :Private {
my ($self, $c) =3D @_;
$c->log->debug('admin begin');
}
sub auto :Private {
my ($self, $c) =3D @_;
$c->log->debug('admin auto');
}
Whether I access / or /admin, I don't see any log from any of the auto
functions, but I do see it from the begin fuctions. I am wondering
what I am missing.
Thank you
Julien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20091030/fd074=
ba8/attachment.htm
More information about the Catalyst
mailing list