[Omaha.pm] Catalyst uri_for()
Jay Hannah
jay at jays.net
Tue Sep 23 11:16:29 PDT 2008
uri_for() is a sweet little chunk of magic.
I throw this into my template:
<a href="[% Catalyst.uri_for('refresh_sold_counts') %]">[refresh]
</a>
And the appropriate URL relative to my current Action happens
automatically... In this case:
http://cac-dev.omnihotels.com:3000/omnicrs/hrms/refresh_sold_counts
(not publicly accessible)
So I can move my Controllers and/or applications around at will and
all my URLs just magically work. :)
Details: http://tinyurl.com/3kd8vu
j
More information about the Omaha-pm
mailing list