[Catalyst] Calling controller/action based on parameter
brainbuz at brainbuz.org
Fri Oct 4 02:16:43 GMT 2013
Hit send too soon
RewriteRule ^/prn(.*) /http://localhost:3003/controllers/people/$1 [P]
On 10/03/2013 10:13 PM, John Karr wrote:
> I'd try a regexp in my begin action.
> But I'd first look at something more properly restful
> You can also do pre-dispatching with rewrite rules on your webserver.
> in apache
> Rewrite Engine On
> RewriteRule ^/prn(.*)
> /http://localhost:3003/controllers/people/n7ivdbdq8808p [P]
> On 10/03/2013 09:41 PM, bill hauck wrote:
>> I've been struggling with the best way to accomplish a somewhat
>> simple task: direct to a specific controller/action based on a code
>> in the uri.
More information about the Catalyst