Simple authentication in Zend Framework

This is quick example of how to do a very simple authentication in Zend Framework. It doesn’t user external database for getting the credentials, although you can make it very easily to read data in the Auth adapter from an external file or MySQL database.