/usr/local/bin/pear -V /usr/bin/pear -V /usr/local/bin/pear upgrade PEAR /usr/bin/pear upgrade PEAR
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: