What makes a good MVC model in CodeIgniter. What my "user" model does is basically use the same active write functions from the database library. The only difference is that you do not need to specify the database table and just do:
$this->usermodel->where('username','test'),
$user = $this->usermodel->get();
It feels awkward because it doesn't make it “much easier.”
Another way I thought was to make the user model as a user object with a load function. But this is not effective when loading more than 1 user.
Can I get some advice from you guys? Thank.
source
share