![]() |
CI Error message in the Model - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: CI Error message in the Model (/showthread.php?tid=55446) |
CI Error message in the Model - El Forum - 10-26-2012 [eluser]yuro[/eluser] Hello, i have a problem. i do through a tutorial of the book "professional codeigniter" and i get this errors: Quote:A PHP Error was encountered Quote:Fatal error: Call to a member function get() on a non-object in E:\xampp\htdocs\CI_2.1.3\application\models\mcats.php on line 39 Thats my Code: Code: application/models/mcats.php: Code: Model.php: I use the CodeIgniter Version 2.1.3.. Help please ![]() CI Error message in the Model - El Forum - 10-26-2012 [eluser]CroNiX[/eluser] Is the database loaded? CI Error message in the Model - El Forum - 10-27-2012 [eluser]yuro[/eluser] thanks i must declared the database in the autoload.php.. but now i have a different problem. Here is the Warning: Quote:Fatal error: Call to undefined method CI_DB_mysql_driver::orderby() in E:\xampp\htdocs\CI_2.1.3\application\models\mcats.php on line 41 Code: function getCategoriesNav() { can you say me, what's the new declaration of the sql command "ORDER BY" by CodeIgniter 2.1.3? CI Error message in the Model - El Forum - 10-27-2012 [eluser]CroNiX[/eluser] Sure, but it's in the user guide so you should probably read that. Active Record |