[Catalyst] Accessing action URIs outside of Catalyst app
Brian Kirkbride
brian.kirkbride at deeperbydesign.com
Wed Jan 3 20:21:40 GMT 2007
Hello all,
Is there a best practice way to maintain a map of URLs used in a Catalyst
application. To clarify, I need to map actions to URLs outside of Catalyst
(CRON jobs, Emailers, etc) and won't have access to $c->uri_for or the
$c->dispatcher.
Right now I have a hashref of action_name => relative_url with a $APP_ROOT_URL
constant defined in my general-purpose/non-cat modules. This is ugly and I have
to manually sync the actions in my controllers with the hash.
Best,
Brian
More information about the Catalyst
mailing list