Facebook SDK Login for Zend Framework Tutorial part 2
AuthController The controller is called from a route. The path /oauth maps to the oauthAction and /ajax maps to the ajaxAction. The main difference between these two actions is how they respond. Oauth redirects the page and ajax responds in JSON.
init() The init() function is run every time the controller loads before any actions. This is a great place to put code that is shared between all actions.