In software development, a framework is a defined support structure in which another software project can be organized and developed.
An abstract design
Set of common functionality
Developed for a particular domain
What is the difference between Zend_Auth and Zend_Acl?
Zend_Auth provides the authentication protocol for the users using many methods whereas; Zend_Acl is used for authorization purpose.
Zend_Auth uses the methods like LDAP, OpenID and HTTP to provide the authentication, whereas Zend_Acl uses Access Control List for authorization.
Zend_Auth provide the authentication in the form of verifying and providing the credentials for the user’s system, whereas Zend_Acl uses list of roles that is being implemented only those who are authorized to it.
Zend_Auth provides an environment to the system through which user who is authenticated for use, whereas Zend_Acl performs some operations on the specific resources that need to be written on the system.
Zend_Auth supports the authentication platforms features, whereas Zend_Acl supports the advanced definitions with features of multiple inheritance and other similar features.
What is Front Controller?
It used Front Controller pattern. zend also use singleton pattern.
routeStartup: This function is called before Zend_Controller_Front calls on the router to evaluate the request.
routeShutdown: This function is called after the router finishes routing the request.
dispatchLoopStartup: This is called before Zend_Controller_Front enters its dispatch loop.
preDispatch: called before an action is dispatched by the dispatcher.
postDispatch: is called after an action is dispatched by the dispatcher.
The operations that can be performed are shown below:
Append: this allows the appending of the functions and methods that can be used to build an application.
Prepend: this allows the content to be placed at the beginning of the file.
Replace: this operation will allow the replacement of the content from any of the content that is present.