• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with modules

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?

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.