[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] Catalyst uri_for()



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