CodeIgniter and autoloading the database library

后端 未结 7 933
小鲜肉
小鲜肉 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

    Shababhsiduque,

    Just you we're right, at least in my case!

    The workaround to getting the ide to work is creating the reference variables in ANOTHER CI project.

    That is leave the system model as it is in the current project but modify it in another project.

    Then change the php buildpath (project->properties->phpbuildpath) to the project with the variables.

    Note this are settings for Aptana Studio 3.

    Worked for me.

    0 讨论(0)
提交回复
热议问题