in reply to Re: Re: Re: Re: Re: Re: Best method for dynamic page generation?
in thread Best method for dynamic page generation?
the start_mode determines what the first value of your run_mode will be.sub setup { my $self = shift; $self->{TEMPLATEDIR} = "/home/templates"; $self->start_mode('edit_setup'); $self->mode_param('rm'); $self->run_modes( 'setup' => \&setup_list, 'edit_setup' => \&setup_edit, 'view_listing' => \&view_listing, }
subs are then executed by URLs like: index.cgi?rm=view_listing
now go read the perldoc on it. ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Re: Re: Re: Best method for dynamic page generation?
by stonecolddevin (Parson) on Jan 05, 2004 at 03:42 UTC |