[Catalyst] [Beginner] Understanding actions and controllers - not!
Ekki Plicht (DF4OR)
ep at plicht.de
Thu Aug 26 22:41:40 GMT 2010
Am Freitag 27 August 2010, 00:02:15 schrieb Kieren Diment:
> On 27/08/2010, at 7:50 AM, Ekki Plicht (DF4OR) wrote:
> > Am Montag 23 August 2010, 23:17:40 schrieb Ben van Staveren:
> >> try using /static/css/main.css ;)
> >
> > Yup, that did the trick.
> > $c.uri_for() would have worked as well, as I have learned now (tnx
> > Stuart).
>
> $c->uri_for('/static/wherever') is the correct solution. Giving it an
> absolute path will most likely break if you end up deploying your
> application somewhere other than the server root.
k, tnx. Good book, BTW :-)
Cheers,
Ekki
More information about the Catalyst
mailing list