{deprecated} CodeIgniter Hints: Extending Models

If you are new to CodeIgniter and are using CI 2.x, then you might run into this little issue. If you want to extend a model, which you will undoubtedly need at some point, you might get confused by instructions that say to do it this way:
class Users extends Model

You won’t get much love doing in trying to extend model in Code Igniter 2.0. Most controllers in CodeIgniter now use the prefix CI_ (that second character is an uppercase ‘i’).

This is the correct way to extend a model:
class Users extends CI_Model
and place the file into application/models:

Page 5 of 19 pages ‹ First  < 3 4 5 6 7 >  Last ›