Re: [Maypole] problem setting $r->{template_args}{whatever}

From: Dave Howorth (dhoworth at mrc-lmb.cam.ac.uk)
Date: Thu Oct 28 2004 - 11:27:17 BST


Peter Speltz wrote:
> Why doesn't this work?
>
> sub edit : Exported {
> my ($self, $r) = @_;
> $r->{template_args}{helpme} = "PLEASE HELP ME";
> }
>
>
> then in edit template:
> [% PROCESS macros%]
> [% INCLUDE header %]
> <UL> ##### DEBUGGING #####:
> <li> helpme == [% helpme %] </li>
> </UL>

I cut and pasted this into my model and template and it works for me!
I guess have something else wrong. Where is your sub edit defined? Are
you sure it is being called? (print STDERR whatever and check the Apache
log)

Cheers, Dave

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT