How does the 'Controller' in MVC architecture communicate with the 'Model'?

  • Direct function calls
  • Session variables
  • Through events and listeners
  • Using RESTful APIs
In CodeIgniter's MVC architecture, Controllers interact with Models through events and listeners. Events triggered in the Controller are listened to by the Model, allowing communication without direct coupling.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *