When the ci framework encounters data connection problems, I am sure the database in config. php link parameter configuration is correct, and in aotoload. add the following code to php: $ autoload [libraries] array (database); then I add PHPcode & lt; in the model ;? PhpclassMhomeextendsModel {f ci framework connection data problems
I'm sure the database in config. php link parameter configuration is correct, and in aotoload. add the following code to php: $ autoload ['libraries'] = array ('database'); then, in the model
PHP code
Load-> database ();} function get_category () {$ query = $ this-> db-> query ("select * from category "); return $ query-> result ();}}
When this page is run on the browser, an httpd.exe application error message is displayed, indicating that the page cannot be displayed after the memory cannot be set to "read". if $ autoload ['libraries'] = array ('database') is not added '); that is, the prompt page is not opened.
------ Solution --------------------
$ Autoload ['libraries'] = array ('database ')
What does it mean?