17 Mar
2013
17 Mar
'13
6:15 p.m.
I guess in session('key'), session is a DSL method. internally, it calls the session->read($key) for you. On Sun, Mar 17, 2013 at 10:07 AM, Octavian Rasnita <orasnita@gmail.com>wrote:
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<http://lists.preshweb.co.uk/mailman/listinfo/dancer-users>