CakePHP authentication/redirection to "users/login" works great if I'm not authenticated and I try to open the page ie. "/posts/view/2".
But if I try to get ie. "/users/somethingNotExisting" then CakePHP threw
Missing Method in UsersController
Error: The action somethingNotExisting is not defined in controller UsersController
Error: Create UsersController::somethingNotExisting() in file: app/Controller/UsersController.php.
It's bad:
I do not want to see error message
Creating missing_action.ctp is not okay, in this case everybody can see the default layout (with menu etc.)
How can I force CakePHP to redirect any unauthenticated unknown action to the login page?