On Wed, 2003-08-20 at 11:43, Jeff Anderson wrote:
> The problem is that SESSION is 'empty' when i try
> to display it in my template. The warn statement
> above yields something like:
>
> [params] session = {
> '_session_id' =>
> 'afaa6ec9ca80e9fb6eafba3804770728'
> }
>
> But there are no keys when i try to access [%
> SESSION %] in my template.
Well, there are no keys in %session except one that begins with an
underscore, and TT treats things that begin with an underscore as
private and pretends they aren't there. Try putting something in the
session.
> Also, i have tried 'attaching' the session like
> so:
> $self->{SESSION} = \%session;
> $params->{SESSION} = \%session;
I believe that's how you want to do it. Otherwise you're creating
another anonymous hash that won't be tied like %session is.
- Perrin
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates