InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
Which Version Of Php Does Zend Framework Require? |
|
Answer» ZEND Framework requires PHP 5.2.4 and up. Some Zend Framework components may WORK with earlier versions of PHP, but these components are TESTED and supported only on 5.2.4 and up. Zend Framework requires PHP 5.2.4 and up. Some Zend Framework components may work with earlier versions of PHP, but these components are tested and supported only on 5.2.4 and up. |
|
| 52. |
Can We Call A Model In View? |
|
Answer» Yes, you can CALL a MODEL in view. Simple CREATE the object and call the METHOD. Yes, you can call a model in view. Simple create the object and call the method. |
|
| 53. |
How To Call Two Different Views From Same Action? |
|
Answer» Example1: Public function indexAction() { If(condition) $this->render(‘yourview.phtml’); Else Index.phtml; Example2: Public function indexAction() { }Now in your index.phtml you can have this statement to CALL other VIEW Example1: Now in your index.phtml you can have this statement to call other view |
|
| 54. |
Where Is The Model In Zf's Mvc Implementation? |
|
Answer» The model component can VARY dramatically in RESPONSIBILITIES and data store from ONE MVC APPLICATION to the next. The model component can vary dramatically in responsibilities and data store from one MVC application to the next. |
|
| 55. |
Name Some Important Component In Zend Framework? |
|
Answer» Uses of Zend_Controller $results = $auth->authenticate($adapter); if ($results->isValid()){ /* user successfully authenticate into LOGIN process */ } Zend_Session_Namespace Uses of Zend_Controller Zend_Session_Namespace |
|
| 56. |
Filters In Zend Framework With Examples? |
|
Answer» The Zend_Filter component provides a set of COMMONLY needed data filters. It ALSO provides a simple filter chaining mechanism by which multiple filters may be applied to a single datum in a user-defined order. Other Filters: The Zend_Filter component provides a set of commonly needed data filters. It also provides a simple filter chaining mechanism by which multiple filters may be applied to a single datum in a user-defined order. Other Filters: |
|
| 57. |
When Do We Need To Disable Layout? |
|
Answer» At the TIME of calling AJAX to FETCH we NEED to disable LAYOUT. At the time of calling AJAX to fetch we need to disable layout. |
|
| 58. |
Difference Between Zend_registry And Zend_session? |
|
Answer» The basic DIFFERENCE between these objects is the ‘scope’ in which they are valid: Zend_Session ACTUALLY uses PHP sessions. Data stored using Zend_Session can be accessed in different/all pages. So, if you want to create a variable named ‘UserRole’ in the /auth/login script and want it to be accessible in /auth/redirect, you would use Zend_Session. The basic difference between these objects is the ‘scope’ in which they are valid: Zend_Session actually uses PHP sessions. Data stored using Zend_Session can be accessed in different/all pages. So, if you want to create a variable named ‘UserRole’ in the /auth/login script and want it to be accessible in /auth/redirect, you would use Zend_Session. |
|
| 59. |
Fetch Last Inserted Id, Fetch All Record And Fetch A Single Record. |
|
Answer» $this->_db->LASTINSERTID(); $this->_db->lastInsertId(); |
|
| 60. |
Does Zend Framework Support Php 4? |
|
Answer» No. Zend Framework was built to use all of the sophisticated object ORIENTED FEATURES of PHP 5 and take ADVANTAGE of SIGNIFICANT performance and security enhancements. No. Zend Framework was built to use all of the sophisticated object oriented features of PHP 5 and take advantage of significant performance and security enhancements. |
|
| 61. |
Checking Whether Form Posted Or Not In Zend Framework? |
|
Answer» $REQUEST = $this->GETREQUEST(); $request = $this->getRequest(); |
|
| 62. |
Configuration In Zend Framework, Application.ini File? |
|
Answer» CONFIGURATION can be DONE in APPLICATION.ini file in Zend framework. This file in the path application/ configs/application.ini. Configuration can be done in application.ini file in Zend framework. This file in the path application/ configs/application.ini. |
|
| 63. |
How Do You Set Module Name, Controller Name, And Action Name In Zend Framework? |
|
Answer» a) $request->setModuleName(‘FRONT’); a) $request->setModuleName(‘front’); |
|
| 64. |
Zend Acl? |
|
Answer» BASED on the zend authentication it ALLOWS the user to ACCESS CERTAIN actions. Based on the zend authentication it allows the user to access certain actions. |
|
| 65. |
Zend Auth? |
|
Answer» It is USED to authenticate user, for EXAMPLE LIKE ADMIN, general etc. It is used to authenticate user, for example like admin, general etc. |
|
| 66. |
Is Zf A Component Library Or A Framework? |
|
Answer» ZF is both. Zend Framework provides all the components required for most web applications in a single distribution. But Zend Framework components are also loosely coupled, MAKING it easy to use just a few components in a web APPLICATION- even alongside other frameworks! Using this use-at-will architecture, we are implementing features COMMONLY found in more monolithic frameworks. In fact, we are currently WORKING on a tooling component for the 1.8 release that will make it simpler to build applications using ZF components, yet will not sacrifice the use-at-will nature of existing ZF components. It’s a testament to the use-at-will architecture of Zend Framework that the tooling component itself can be used STANDALONE. ZF is both. Zend Framework provides all the components required for most web applications in a single distribution. But Zend Framework components are also loosely coupled, making it easy to use just a few components in a web application- even alongside other frameworks! Using this use-at-will architecture, we are implementing features commonly found in more monolithic frameworks. In fact, we are currently working on a tooling component for the 1.8 release that will make it simpler to build applications using ZF components, yet will not sacrifice the use-at-will nature of existing ZF components. It’s a testament to the use-at-will architecture of Zend Framework that the tooling component itself can be used standalone. |
|
| 67. |
What Is The Use Of Bootstrap? |
|
Answer» Apart from index if we want to do any EXTRA CONFIGURATION REGARDING DATABASE and other things that is DONE within bootstrap. Apart from index if we want to do any extra configuration regarding database and other things that is done within bootstrap. |
|
| 68. |
What Is Use Of Zend Front Controller? |
|
Answer» Routing and dispatching is managed in the front CONTROLLER. It COLLECTS all the REQUEST from the server and handles it. Routing and dispatching is managed in the front controller. It collects all the request from the server and handles it. |
|
| 69. |
What Is Autoloader? |
|
Answer» AUTOLOADER is FUNCTION that LOAD all the OBJECT on START up. Autoloader is function that load all the object on start up. |
|