[Catalyst] regexes and auto actions

Christopher H. Laco claco at chrislaco.com
Tue Oct 31 17:56:02 GMT 2006


Carl Johnstone wrote:
> Hi,
> =

> Got a question regarding the best way of setting up handlers.
> =

> The site is split into many areas (and subareas) defined by URL path,
> the same types of content appear in each area of the site.
> =

> There's stuff that needs setting up that's specific to the area of the
> site, this appears around the main part of the content of the page and
> includes stuff like latest articles for that area.
> =

> At the same time the actual appearance of the article within the
> template is always the same, so we don't want to duplicate all the code
> every time we're dealing with a standard article.
> =

> So we have:
> =

> /news/
> /news/story/1
> /news/comments/1
> /sport/
> /sport/story/2
> /sport/comments/2
> /sport/football/
> /sport/football/story/3
> /sport/football/comments/3
> =

> etc
> =

> Our plan was to use auto actions in the various Controllers to define
> all the area specific stuff. Then use a Regex action in another
> Controller to actually generate the article.
> =

> In practice however only /article/auto and /auto get called.


Do those two auto subs return true?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://jules.scsys.co.uk/pipermail/catalyst/attachments/20061031/2cb1=
b204/signature.pgp


More information about the Catalyst mailing list