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? 回答1: To be honest, I don't think it is a good idea to