[Catalyst] Re: Chained, root action, with default sub present
pagaltzis at gmx.de
Sun Aug 16 05:22:46 GMT 2009
* Matija Grabnar <matija at serverflow.com> [2009-08-09 16:35]:
> If not, what do I have to change to have both index and default
> in my root controller?
Do you *need* both in the same controller? Since you can attach
the root action of a Chained tree to any point in your URI space,
there is no need to have anything but a few infrastructure
actions in the ::Root controller. Mine has only the app-wide
`begin`, `default` and `end`, plus a `error404` action (for
forwarding to) and `login` and `logout`. Everything else is in
specific controllers, rather than in the catch-all ::Root, and
none of the other controllers have these special actions.
And that works perfectly.
This doesn’t *fix* the problem you found, of course – assuming
that it is a problem at all, and assuming it can even be fixed
at this point.
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst