Welcome Guest, Not a member yet? Register   Sign In
Working with modules
#1

[eluser]Unknown[/eluser]
So I'm thinking about giving the modular side of CI a go, using possibly ME or Matchbox. I've got a question regarding the use of these modules.

Currently, for example, I have a setup like this:

application/controllers/user.php
- login method
- logout method
- register method
- view($id) method
- etc...

For a modular setup, could I do something like:

application/modules/user/controllers/
- login controller
- logout controller
- register controller
- view controller
- etc...

So basically split each current method in the user controller into its own controller by itself. Less code in each file would make things more efficient, I'd imagine, but is this an alright way I can go about this, or is there something I'm overlooking?




Theme © iAndrew 2016 - Forum software by © MyBB