in reply to [Catalyst] How do you handle "URL Parameters" (aka advanced "route matching")
In Catalyst, you can use something like:
for a url like:sub entry :Args(4) { my ($self, $c, $year, $month, $date, $title) = @_; [locate and print article based on year etc] }
See the documentation about :Args. Arguments are also found under $c->request->arguments.http://address/entry/year/month/date/title http://address/entry/2014/04/03/foo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [Catalyst] How do you handle "URL Parameters" (aka advanced "route matching")
by three18ti (Monk) on Apr 04, 2014 at 07:32 UTC |