[Catalyst] action whose name started with underscore
Hu Hailin
i at h2l.name
Mon Nov 14 08:20:22 GMT 2011
Hello,
I defined some actions in controller for inner forwarding purpose.
To make the purpose clearly, I named them starting an underscore.
----------
package MyApp::Controller::Root;
sub foo : Local {
# blahblahblah
$c->forward('_bar');
}
sub _bar : Private { #blahblahblah }
----------
in this way, I can't trace the forwarding in debug mode witch supposed
to be something like
----------
| /foo
| -> /_bar <- this line doesn't exists
----------
Actually, the forwarding works as expected inside.
Is it a implicit rule, or does an action starting with underscore mean
something special?
Thanks.
--
islue
More information about the Catalyst
mailing list