+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

Zend Framework Interview Questions and Answers

What is a framework?

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.
Why should we use framework?

Framework is a structured system

  • Source codes become more manageable
  • Easy to extend features
  • Rapid application development
Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.