[Catalyst] action whose name started with underscore
Tomas Doran
bobtfish at bobtfish.net
Mon Nov 14 09:17:08 GMT 2011
On 14 Nov 2011, at 08:20, Hu Hailin wrote:
> I defined some actions in controller for inner forwarding purpose.
> To make the purpose clearly, I named them starting an underscore.
You explicitly made those actions private, so they didn't get shown.
http://search.cpan.org/~bobtfish/Catalyst-Runtime-5.90006/lib/Catalyst.pm#INTERNAL_ACTIONS
But generally, if it needs to be _that_ private - why make it an
action at all?
Why not just call $self->_private_method($c); ?
Cheers
t0m
More information about the Catalyst
mailing list