In Dancer2, you can't access the session object data directly like that anymore.
You can use the API described in Dancer2::Core::Session, though.
David
Hi,
I read that we can use both:
session('key')
and
session->{key}
...in order to get a value from the session.
I tried:
template 'login', { message => session->{flash} };
but it didn't work. However, the following worked:
template 'login', { message => session('flash') };
--Octavian
_______________________________________________
dancer-users mailing list
dancer-users@dancer.pm
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users