Re: [Templates] Template::Plugin::Class -- error with dynamic arg.

[prev] [thread] [next] [Date index for 2005/02/09]

From: Richard Clamp
Subject: Re: [Templates] Template::Plugin::Class -- error with dynamic arg.
Date: 09:27 on 09 Feb 2005
On 7 Feb 2005, at 22:05, Bart Simpson wrote:
> Using T::P::Class, if i say:
> [% USE class =3D Class(myhash.$mykey) %]
>
> usiing a variable as argument and then call a method
> with class
> [% class.mymethod %]
>
> in one template i get  this error:
> undef error - Can't call method "accessor_classes"
> without a package or object reference at
> /usr/lib/perl5/site_perl/5.8.5/Template/Plugin/Class.pm
> line 35.

Is class.mymethod really class.accessor_classes=01?

Please don't obscure your failing case, as then you're asking people to =20=

solve two puzzles, 1) what your code really is.  2) what's wrong with =20=

it.


> http://lists.netthink.co.uk/pipermail/maypole/2004-September/=20
> 000688.html

This was a different problem.  One of trying to call object methods as =20=

class methods.  It made it over to the Class::DBI list iirc.

--=20
Richard Clamp <richardc@xxxxxxxxx.xxx>


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Image plugin
Tosh Cooey 18:20 on 07 Feb 2005

Re: [Templates] Image plugin
Perrin Harkins 20:52 on 07 Feb 2005

Re: [Templates] Template::Plugin::Class -- error with dynamic arg.
Richard Clamp 09:27 on 09 Feb 2005

Re: [Templates] Image plugin
Harry Jackson 10:49 on 08 Feb 2005

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52