CI Error message in the Model |
[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
[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?
[eluser]CroNiX[/eluser]
Sure, but it's in the user guide so you should probably read that. Active Record |
Welcome Guest, Not a member yet? Register Sign In |