[Catalyst] action whose name started with underscore

Hu Hailin i at h2l.name
Mon Nov 14 10:19:24 GMT 2011


Erez,

Yes, I tried. And it is shown.

t0m,

Got it. Thank you very much.

On Mon, Nov 14, 2011 at 6:17 PM, Tomas Doran <bobtfish at bobtfish.net> wrote:
>
> 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
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



-- 
islue



More information about the Catalyst mailing list