nicolasbeauvais / Walrus

Walrus Framework - Certainly not that big whatever factory.
https://walrus.herokuapp.com
MIT License
46 stars 6 forks source link

pass $_SESSION to twig automatically #55

Closed babaorum closed 10 years ago

nicolasbeauvais commented 10 years ago

We are working on it,

It will be pushed to master on monday.

Regards.

babaorum commented 10 years ago

thanks ;)

nicolasbeauvais commented 10 years ago

Done 64220241ffc606efeb4dd878eb3915338b01c45b.

You can access all super global variables by ussing "app" just like in symfony.

{{ app.session.name }}

I also added the Twig dump() function in development environment

{{ dump(app.session) }}
babaorum commented 10 years ago

perfect ;)