CodeIgniter Forums

Full Version: Working with modules
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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:

- login method
- logout method
- register method
- view($id) method
- etc...

For a modular setup, could I do something like:

- 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?