Closed zessx closed 11 years ago
You're looking for "pre_dispatch.php" which will be called before dispatching the action. It is a much better place for the snippet you provided.
the goal of bootstrap.php is to do some things before the framework starts.
Exactly what I was looking for. I made a first unsuccessful try with pre_dispatch
and post_dispatch
, and totally forgot about those files later.
This allows me to manage sessions, thanks !
Atomik.php:192
Calling bootstrap before
Atomik::Start
prevent us to act on sessions, or access to Atomik content. I saw (didn't remember where so...) it was originally called afterAtomik::Start
, what was the goal to revert the call order ?An example, how can I manage my sessions if I can't access to Atomik content :
bootstrap.php
Note : using
Session.autostart => false
doesn't look like a good alternative, as it rise a few issues (like the lost of Flash messages). I maybe doesn't use it in the right way.