[Catalyst] file paths when using catalyst controllers.

kakimoto at tpg.com.au kakimoto at tpg.com.au
Sun Nov 9 07:08:27 GMT 2008

hi there,

1) there is no particular reason the static references need to use
relative paths
2) i tried using an absolute path but the issue is still no good.

guys, I updated Catalyst-Plugin-Static-Simple and Catalyst-Plugin-Static
and tried to run my application again. I am getting this message
(nothing else has changed).

" >./server 
Undefined subroutine &Catalyst::Utils::env_value called at
/usr/local/share/perl/5.8.8/Catalyst/Plugin/ConfigLoader.pm line 173.
Compilation failed in require at ./server line 56. "

Quoting Jacob Helwig <jacob.helwig at gmail.com>:

> On Sat, Nov 8, 2008 at 21:08,  <kakimoto at tpg.com.au> wrote:
> >  4) the static file accesses files in the following manner :
> > "images/default/logo.gif" hence the request above would result in
> the
> > request being
> > "subscription/images/default/logo.gif"
> Seems like the simple solution would just be to have the static file
> reference the images using absolute paths instead of relative paths.
> ("/images/default/logo.gif" instead of "images/default/logo.gif")
> Is there a particular reason the static references need to use
> relative paths?
> -Jacob
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/

More information about the Catalyst mailing list