[Catalyst] Re: I am misunderstanding something about Private actions

Aristotle Pagaltzis pagaltzis at gmx.de
Sun Jan 6 01:11:36 GMT 2008


* Joe Landman <landman at scalableinformatics.com> [2008-01-06 00:55]:
> I want to forward to some private actions to simplify the
> application (and avoid repeating myself).

FWIW, if you use Chained, you will need many fewer explicit
`forward`s than with other dispatch types.

> So in reading the manual, I thought I was supposed to do
>
> 	$c->forward('MyApp::Root::do_something');
>
> and not
>
> 	$c->forward('/do_something');

Where does it imply that? That would have to be corrected.

> The latter works, the former does not. Is this intended? Are
> both supposed to work?

Yes. No.

> Should I avoid that practice with Catalyst? Just name them
> INTERNAL_METHOD_do_something or something like that?

If you they are actions you forward to, they are not private
methods really, are they?

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list