Thinkphp creates sub-applications and thinkphp creates applications.

Source: Internet
Author: User

Thinkphp creates sub-applications and thinkphp creates applications.

1 directory Create File Name

2. Create index. php under

Define ('app _ name', 'A ');
Define ('app _ path', './');
Define ('runtime _ path', './Temp /');
Require '../ThinkPHP. php ';

3. input in the browser

 


How does thinkphp create a table project that requires a program to create a non-existent table at runtime? How does thinkPHP implement it?

You must create a data table in the database. Open phpMyAdmin to create a database and then create a table.

How does thinkphp create a class that can only be called by other classes without external access?

Thinkphp classes cannot be accessed externally. You should be talking about functions.
Use private statement if only the class is accessed.
Use the protected statement if the inherited access is also allowed
In addition, thinkphp does not allow external calls to Methods starting with "_", even if this method is declared as public.

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.