[Catalyst] Find Action via Public Path.

Andrew catalystgroup at unitedgames.co.uk
Tue Dec 5 05:00:51 GMT 2017


Hope you're all well, =).

Do any of you know what the best way to find an action name, via a public path, may be?
I found $c->dispatcher->get_action_by_path($path) only works for private paths internal to our app.

So for example, if we have:
...I've got the string "coolpage" and I want to call the associated action within my catalyst app.
I thought it would be more secure to use the string to look up a corresponding action name / subroutine, and then call that subroutine, rather than call a request for whatever happens to be in the string.

Any advice, appreciated.

Many thanks,

Andrew M.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/catalyst/attachments/20171205/55dccad2/attachment.htm>

More information about the Catalyst mailing list