1.

Explain the CodeIgniter framework.

Answer»

The CodeIgniter application is based on the MVC (Model – View – CONTROLLER) model, which separates the application logic from the presentation view. Because of presentation view separation from the PHP scripting, it allows your web pages for script minimization.

  • Model:
    • Generally, a model is used for DATABASE interaction. When a user raises a request for the specific data from the application, the model takes the accountability to fetch out the RECORDS from the database table.
    • ALSO, a data structure represented by the model can be used to perform several operations like retrieve, insert, update, and delete.
  • Controller:
    • The working of the CodeIgniter application is controlled by the controller. It acts as an intermediary for the communication between the model and the view. Therefore, it has the accountability to receive the user request and handle that request by furnishing a result generated by the model. The appropriate records will be displayed to the user by using the view component. (Note: The Controller file name and class name should be the same and must be in uppercase letters. Example- Main.php)
  • View:
    • Typically, a view is similar to a web page that has the INFORMATION displayed to the user. A view can also be an integral part of a web page such as header and footer. The view page can be represented in both RSS(RDF Site Summary) and a user interface.


Discussion

No Comment Found