Zend Framework 2 - Global check for authentication with ZFCUser
I installed ZFCUser successfully. Now I wonder if there is a way to globally check for authentication. As outlined in the wiki there are several ways to check for auth. They all work but do I have to put the check-if-clause really in every single action? All my sites should be only accessable when beeing logged in and if not, you should be rerouted to the login page. Does anybody know if there's a central place where I can put this logic? To be honest, I don't think it is a good idea to block every page for a non-authenticated user. How would you access the login page? That said, you must know