On 9/1/05, Will <[EMAIL PROTECTED]> wrote:
> The documentation states:
>
> my $webapp = App->new(
> TMPL_PATH => 'App/',
> PARAMS => {
> 'custom_thing_1' => 'some val',
> 'another_custom_thing' => [qw/123 456/]
> }
> );
>
> But the only examples to get at the params are done with the ConfigAuto
> plugin. Are there other ways to get a params in my script/template?
my $custom_thing_1 = $self->param('custom_thing_1');
I just checked the docs for this, and you are right that it is a
little bit confusing. I'm sure Mark would appreciate a patch to
clarify the docs regarding the relationship between PARAMS and
->param.
Cheers,
Cees
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]