Tp framework, html, and php. what is the same?

Source: Internet
Author: User
In the tp framework, an html file and a php file have the same content. what is the difference? copy and copy the ghost file path D: \ WWW \ snadmin \ Home \ View \ default \ index, during the modification search, the directory D: \ WWW \ snadmin \ Runtime \ Cache \ Home contains a php file named 0de7d861c1cb42e2c9c40884b7e83a8a, the content is the same as the content in html. php code is added differently. All others are the same. there is a file title above it. Code, I modified the content in the original index.html file. the file name is 0de7d861c1cb42e2c9c40884b7e83a8a and the content will change accordingly. what is the problem?

The secret will also be associated with the copied 1de7d861c1cb42e2c9c40884b7e83a8a file. I did not find any settings in this website template. please advise


Reply to discussion (solution)

All your html files will be converted into ". php" files through the tp framework, and the converted php page will not be displayed in the browser.
Your 0de7d861c1cb42e2c9c40884b7e83a8a. php is the converted php page.

Read the development manual carefully.

All your html files will be converted into ". php" files through the tp framework, and the converted php page will not be displayed in the browser.
Your 0de7d861c1cb42e2c9c40884b7e83a8a. php is the converted php page.



If I add a new html page, how can I convert it to php.

Read the development manual carefully.



I am in urgent need of this problem, so I will ask for help to see what the problem is and how to solve it. I have to check it later, but I will not understand it at half past one. please help me with the help, how can I perform the conversion now?

Conversion is not required!
Everything in the Runtime directory is generated by a program, and it is useless if you change it.

Conversion is not required!
Everything in the Runtime directory is generated by a program, and it is useless if you change it.



Then how do I perform the new page to automatically convert it like the original page?


All your html files will be converted into ". php" files through the tp framework, and the converted php page will not be displayed in the browser.
Your 0de7d861c1cb42e2c9c40884b7e83a8a. php is the converted php page.



If I add a new html page, how can I convert it to php.



You can drop your own html page into the view folder and access it through the appropriate path.

For example, the html page in the path car_project/Application/Home/View/Work/login.html
You can use this path to access http: // localhost/car_project/index. php/Home/Work/login /.
The corresponding php file is automatically generated after access.




All your html files will be converted into ". php" files through the tp framework, and the converted php page will not be displayed in the browser.
Your 0de7d861c1cb42e2c9c40884b7e83a8a. php is the converted php page.



If I add a new html page, how can I convert it to php.



You can drop your own html page into the view folder and access it through the appropriate path.

Yes, it can be generated automatically, but how do I write the code for executing a Display database on the newly added html? I used {$ userData ['ue _ account']} but did not respond.




All your html files will be converted into ". php" files through the tp framework, and the converted php page will not be displayed in the browser.
Your 0de7d861c1cb42e2c9c40884b7e83a8a. php is the converted php page.



If I add a new html page, how can I convert it to php.



You can drop your own html page into the view folder and access it through the appropriate path.

Yes, it can be generated automatically, but how do I write the code that shows the database content on the newly added html? I used {$ userData ['ue _ account']} and didn't respond.



I found that "{$ Think. session. adminuser}" can be used to display database content, but "{$ Think. session. zcinfo}" cannot display anything !! Where can I set the variable "{$ Think. session. adminuser}" in blank space? However, I did not find the adminuser variable after I searched it all. This shows the value in the suer field of the database mer table, and then the "{$ Think. session. zcinfo} "The value in the name table user field cannot be displayed. I am using the TP framework and I don't know how to get it. please help me solve it !! Urgent

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.