Hi i am new to ZF2 and i am trying to understand the main concepts by creating an extended application to learn all about ZF2 and test my knowledge.
Please forgive me if my questions sound stupid or if i didnt get some things along the way when using things, i try to learn while i go.
At this point i want to integrate Authentication and ACL to my project and i need some questions answered for my general understanding of how this process works and how i can use it.
I already integrated a Login Form so i can Authenticate, and it is possible for me to do so, a PHP Session Cookie is created and i can identify a user through hasIdentity() in the AuthService.
As i am about to create ACL, of which i read the documentation and think i understood it, how am i able to check on every page request of my application if a user has access to certain pages/controllers etc.
From what i read and think it must be in the bootstrap of the module, so that on every page load the user is identified and ACL is checked for access. if the user has the right he is granted access and requested page i loaded but if he doesnt have access he gets redirected to any other page (index/index or error page etc.)
But so far i couldnt find any useful tutorial or really good advice on how to create a bootstrap for my module and how to realise that pre-load access check.
are there any useful articles (with code pls for better understanding) or tutorials on how to make auth acl and module bootstrap work and work together? Are there any other things that i must take care of when trying to get my user system to work?
thanks in advance for any advice!
happy new year btw :)