Apr
27
revised CodeIgniter Database call in Model-Class
deleted 2 characters in body
Apr
24
comment CodeIgniter Database call in Model-Class
Seems like the problem is solved!! The problem was, that I edited the CI_Model for autocompletion in my Eclipse PTD. therefor I used the following article: link Seems like these changes messed up my CI_Model! Thanks to all of you for your help!! link
Apr
24
comment CodeIgniter Database call in Model-Class
I edited my thread and added the database.php
Apr
24
comment CodeIgniter Database call in Model-Class
I edited my thread and added the database.php
Apr
24
revised CodeIgniter Database call in Model-Class
added 725 characters in body
Apr
24
comment CodeIgniter Database call in Model-Class
Yes it is set to true. But I only receive the above error.
Apr
24
comment CodeIgniter Database call in Model-Class
The var_dump($this->db) return null. So the database isn't initialized. But the database module is set in the config/autload.php and the parameters in the config/database.php are also fine. Do I have to set anything else?
Apr
24
comment CodeIgniter Database call in Model-Class
Thanks for the hint! I Changed the __construct in the controller and removed the __construct from the model. But nothing changed. Still receiving the error.
Apr
24
comment CodeIgniter Database call in Model-Class
Thanks for the hint!!
Apr
24
answered JavaScript string replace is not working
Apr
24
comment CodeIgniter Database call in Model-Class
I want multiple results. But my problem is, that the line $query = $this->db->query("SELECT * FROM location WHERE City_IATA = 'MUC'"); creates the error "Fatal error: Call to a member function query() on a non-object"
Apr
24
revised CodeIgniter Database call in Model-Class
added 27 characters in body
Apr
24
comment CodeIgniter Database call in Model-Class
The var_dump returns nothing, cause it dies before the var_dump. The database settings are checked and fine :-/
Apr
24
awarded Editor
Apr
24
revised CodeIgniter Database call in Model-Class
edited tags
Apr
24
asked CodeIgniter Database call in Model-Class