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.
| 1. |
What is a helper in CodeIgniter? |
| Answer» | |
| 2. |
Why CodeIgniter is called a loosely based MVC framework? |
|
Answer» Codeigniter is CALLED a loosely based MVC FRAMEWORK because it does not need to obey a strict MVC pattern during application CREATION. It is not important to create a model, we can use only view and controllers for creating an application. In addition, ONE can modify CodeIgniter to UTILIZE HMVC(Hierarchical Model View Controller) as well. |
|
| 3. |
How to link images from a view in CodeIgniter? |
|
Answer» In CODEIGNITER, you can link images/CSS/JavaScript from a VIEW by using the absolute path to the resources required with respect to the ROOT FOLDER as given below: /css/styles.css/js/query.php/img/news/566.gpg |
|
| 4. |
What are drivers in CodeIgniter? |
Answer»
|
|
| 5. |
What is routing in CodeIgniter? |
Answer»
|
|
| 6. |
Explain the difference between helper and library in CodeIgniter. |
||||||||||
Answer»
|
|||||||||||
| 7. |
How to check the CodeIgniter version? |
|
Answer» There are 2 ways to check the CodeIgniter VERSION.
You can echo the constant value of CI_VERSION in the CodeIgniter CONTROLLER or view file.
|
|
| 8. |
What is an inhibitor in CodeIgniter? |
|
Answer» An inhibitor in CODEIGNITER is an ERROR handler class. It will make use of PHP’s NATIVE functions like set_error_handler, set_exception_handler, register_shutdown_function to handle parse errors, exceptions, and fatal errors. |
|
| 9. |
What are hooks in CodeIgnitor? |
Answer»
In the above code example, the ‘pre_controller‘ hook is called hook POINT. Various types of hook points are available in CodeIgniter. |
|
| 10. |
What is CodeIgniter? |
|
Answer» CodeIgniter is an open-source and MVC-based framework used for WEB application development on PHP. This framework contains LIBRARIES, an easier interface with a LOGICAL structure to access these libraries, helpers, plug-ins, and other resources as well. It is easy to USE compared to other PHP FRAMEWORKS. |
|