[Catalyst] RE: ServerDB 1.01

Will Hawes info at whawes.co.uk
Fri Jun 24 16:53:13 CEST 2005

Sorry, that should have read "base", not "$c->config->{uri_base}".

Having reviewed the Hops code, I'm not entirely sure what purpose "uri_base" serves. It seems just to be a hard coded version of "base" as provided dynamically by Catalyst as far as I can tell. That would make it both inferior and unnecessary.

Maybe I am missing something. Simon?


----- Original Message -----
From: Will Hawes <info at whawes.co.uk>
To: catalyst at lists.rawmode.org
Sent: Fri, 24 Jun 2005 12:56:04 +0100
Subject: ServerDB 1.01

> I'd like to suggest a minor improvement to the ServerDB 1.01 example.
> Unlike Hops, neither the templates nor the code itself take
> $c->config->{uri_base} into account, making all URLs relative to the site root.
> While this is not a problem running under the test server, it can be from other
> environments, e.g. from a CGI script or even under a mod_perl setup without
> admin control.
> Changing the above would illustrate better that Catalyst apps can run under
> multiple environments using a single configuration.
> wh

More information about the Catalyst mailing list