Problems related to ci framework connection data

Source: Internet
Author: User
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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.