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.