Welcome Guest, Not a member yet? Register   Sign In
How to implement Modules with Codeigniter?
#1

[eluser]Ki[/eluser]
I have raised this question before and got some pretty good answers but not exhaustive.
I am interested to know how CI community implemented modules within CI and yet follow MVC framework.
For simplicity reasons, lets assume there is an action that user performs on various pages of a site. That action may be identical, like a contact form. If we do not want to duplicate the code, we would put the form validation, error output in the view. But if we wanted to follow the MVC, the we would duplicate validation and error output in every controller.

Are there any other solutions to follow MVC and yet have it all in one place?
#2

[eluser]a77icu5[/eluser]
Matchbox ;-)
#3

[eluser]WanWizard[/eluser]
I think Matchbox ceased development quite some time ago, and might not be compatible with the latest Ci version anymore.

As an alternative, check out Modular Extensions HMVC or Modular CI.
#4

[eluser]InsiteFX[/eluser]
CodeIgniter WIKI HMVC

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB