FAQ
From: "John M. Dlugosz" <wxju46gefd@snkmail.com>
...
And as Carl recommended, it is good to not hard-code the URLS in the
templates because they won't work if you'll want to make some changes and
want to put the whole application to listen to a different base than /,
for example /old-site.

So use $c->uri_for('/path/to/static/file');
or
$c->uri_for_action('/path/to/action'); #for the dynamic pages
I see, so do that for static files too, not just actions?

Yes you should do this for static files too, because if you'll move the
entire application, say from / to /old-app, then the static files will also
move from /images to /old-app/images.

Octavian

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 7 of 7 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedFeb 23, '11 at 11:30a
activeFeb 24, '11 at 12:13p
posts7
users4
websitecatalystframework.org
irc#catalyst

People

Translate

site design / logo © 2022 Grokbase