FAQ

On 2/23/2011 5:41 AM, Carl Franks fireartist-at-gmail.com |Catalyst/Allow to home| wrote:
On 23 February 2011 11:30, John M. Dlugoszwrote:
I just started trying Catalyst. I went through the Packt Publishing book, but now want a more technical explanation with details. Any suggestions on what documentation to read?

With the situation as set-up by default, I would write:
<img src="/static/images/bad_logo.png" />
to access a site image. How can I configure it so I can write
src="foo/bad_logo.png"
instead?
Using TT, that would be:
[% c.uri_for('/foo/bad_logo.png') %]

Cheers,
Carl
I mean make the things under /foo serve as static files!

My understanding is that uri_for takes a Controller's "private" spec and produces the
URL. So what you wrote would be if I had a controller named Foo with a method named
bad_logo.png. Am I missing something here?

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 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