[Catalyst] how to set a default (index.html) page (Template
devin.austin at gmail.com
Sun Nov 2 03:25:43 GMT 2008
well it's defined in Root.pm, the default() method. It defaults to
$c->welcome_page (or something close).
Typically you use a template instead of a static HTML page for your default
page, so you'd simply set which template you want (which depending on your
set up is usually located in <project-name>/root/). default() is used for
404ing i believe, but if you're talking about an *index* page then you'll
want to set your template in the index() method.
On Sat, Nov 1, 2008 at 9:06 PM, <kakimoto at tpg.com.au> wrote:
> any ideas>?
> Quoting kakimoto at tpg.com.au:
> > hi guys
> > i am fine tuning my application. Like the examples given in the
> > tutes,
> > the default page is to login the user.
> > How do I load a default page (ie index.html)? Assume it is stored
> > in
> > <project-name>/root/static.
> > I was looking at Root.pm where the default behaviour of logging in
> > users
> > is defined.
> > Ta
> > K. Akimoto
> > _______________________________________________
> > List: Catalyst at lists.scsys.co.uk
> > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> > Searchable archive:
> > http://firstname.lastname@example.org/
> > Dev site: http://dev.catalyst.perl.org/
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> Dev site: http://dev.catalyst.perl.org/
http://www.dreamhost.com/r.cgi?326568/hosting.html - Host with DreamHost!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Catalyst