Hi all,
Another quick Apache::Request question...
I need to access a request parameter in a Plugin.I
know with Apache::Template you can use 'params'. I'm
getting the param in the template and then access it
in my Plugin via stash (see snippet below). Is there a
way to access the param directly in the plugin so I
don't have to clutter my template with the extra tags?
Template (index.html):
--
[% uc_form_year = params.uc_form_year %]
[% USE FeatureView %]
UC::Template::Plugin::FeatureView
--
sub new {
my ($class, $context, @params) = @_;
my $stash = $context->stash();
my $uc_form_year = $stash->get('uc_form_year');
bless {
_CONTEXT => $context,
uc_form_year => $uc_form_year,
}, $class;
}
Thanks,
--
doug
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com