[Catalyst] action whose name started with underscore
Erez Schatz
moonbuzz at gmail.com
Mon Nov 14 08:50:27 GMT 2011
Have you tried the same thing without the underscore but with :Private?
On 14 November 2011 10:20, Hu Hailin <i at h2l.name> wrote:
> 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
>
> _______________________________________________
> 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/
>
--
Erez
Stop software patents
More information about the Catalyst
mailing list