[dancer-users] session->{} doesn't work?
Hao Wu
echowuhao at gmail.com
Sun Mar 17 18:15:03 GMT 2013
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 at 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 at dancer.pm
> http://lists.preshweb.co.uk/**mailman/listinfo/dancer-users<http://lists.preshweb.co.uk/mailman/listinfo/dancer-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20130317/dfa82f15/attachment.htm>
More information about the dancer-users
mailing list