CodeIgniter and autoloading the database library

后端 未结 7 989
小鲜肉
小鲜肉 2021-01-21 04:19

I\'ve got an issue connecting to the database with CodeIgniter.

In the model, if I do

$this->load->database();

then a query such

7条回答
  •  梦谈多话
    2021-01-21 04:59

    I know I am probably just answering a dead question but i had the same problem.

    if you are using eclipse pdt or similar IDE and modified the system>core>model.php by adding some variables just before the constructor to get code completion then the autoload doesnt work

    i dont know why but the fact is it doesnt work. I restored the core>model.php to original and autoload works fine. I dont get autoload now and its really a bad experience for new coder to CI.

    If you have a workaround please comment so.

提交回复
热议问题