• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DRY database stuff

Hi all,

What is the best way to CRUD into different tables into the database without having to keep repeating myself?

I have seen some database libs kicking about but not sure how they work, can some explain this and what is the best way to achieve this?

Learn MY_Model.


Joost's video tutorial is an excellent way to understand them: http://codeigniter.tv/

Jesse Terry has written a nice one: https://github.com/jesseterry/CodeIgniter-CRUD-Model

Jamie Rumbelow has as well: https://github.com/jamierumbelow/codeigniter-base-model that I wrote a brief tutorial about how to use: http://www.codebyjeff.com/blog/2012/01/u...s-my_model

Definitely choose one or build your own and always be in the habit of using it - I wish a basic default MY_Model was included in CI & taught as the standard way to start coding projects

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

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