After TPconfig. php is changed

Source: Internet
Author: User
If the configuration information in the conf/config. php file is changed, delete the runtime /~ Runtime. php; otherwise, the system information error may occur. for example, after configuring the database information: & lt ;? Ph...

If the configuration information in the conf/config. php file is changed, delete the runtime /~ Runtime. php; otherwise, the system information error may occur.

For example, after configuring the database information:

  1. If (! Defined ('think _ path') exit ();
  2. Return array (
  3. 'Db _ type' => 'mysql', // The database used is mysql.
  4. 'Db _ host' => 'localhost ',
  5. 'Db _ name' => 'myapp', // database NAME
  6. 'Db _ user' => 'root ',
  7. 'Db _ pwd' => 'yzw', // enter your database connection password
  8. 'Db _ port' => '123 ',
  9. 'Db _ prefix' => 'think _ ', // The table name PREFIX, see the http://thinkphp.cn/Article/10
  10. );
  11. ?>

Information cannot be flushed until I delete it ~ After runtime. php:

  1. Public function index (){
  2. // $ This-> assign ('str', "hello ");
  3. // $ This-> display ();
  4. $ Form = D ("Form ");
  5. $ Result = $ Form-> findAll ();
  6. Dump ($ result );
  7. }

The output information is as follows:

  1. Array (1) {[0] => array (7) {["id"] => string (1) "1" ["title"] => string (18) "This is the test data" ["content"] => string (4) "dfdf" ["create_time"] => string (10) 1212724876 "[" update_time "] => string (1)" 0 "[" status "] => string (1) "1" ["email"] => string (12) "dddd@ddd.com "}}

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.