TP frame an HTML and a PHP inside content is the same what's going on

Source: Internet
Author: User
I have a PHP web platform made with the TP framework, I want to add a page of HTML content, find the home page index.html file path D:\WWW\snadmin\Home\View\default\index copy copy, make a change search time found D : \www\snadmin\runtime\cache\home This directory has a file named 0de7d861c1cb42e2c9c40884b7e83a8a such a large number of PHP, Inside the content and HTML is the same as the PHP code is not the same added The other is the same, there is a file title above Code, I changed the contents of the original index.html file the contents of this file named 0de7d861c1cb42e2c9c40884b7e83a8a will also correspond to changes, what is the matter?

is not I with her like, to where to set up under my modified, index1.html also want to and copy of the 1de7d861c1cb42e2c9c40884b7e83a8a file association, I found a large circle in this site template and did not find where to set, ask for advice


Reply to discussion (solution)

All of your HTML will be converted into a ". php" file through the TP framework, and the final display on the browser is not the original HTML, but the converted PHP page.
Your 0de7d861c1cb42e2c9c40884b7e83a8a.php is the converted PHP page.

I suggest you read the development manual carefully.

All of your HTML will be converted into a ". php" file through the TP framework, and the final display on the browser is not the original HTML, but the converted PHP page.
Your 0de7d861c1cb42e2c9c40884b7e83a8a.php is the converted PHP page.



So if I add a new HTML page, how do I get him to convert to PHP?

I suggest you read the development manual carefully.



Because I now this problem is more urgent, so first come to see what is the problem, how to solve, I have to look at the back, but 1:30 will not understand, also please help guide, now how to operate can realize that conversion

No need for you to convert!
Everything in the Runtime directory is generated by the program, and you don't have to change it.

No need for you to convert!
Everything in the Runtime directory is generated by the program, and you don't have to change it.



What do I need to do to add a new page now that he's going to automatically switch to those same pages?


All of your HTML will be converted into a ". php" file through the TP framework, and the final display on the browser is not the original HTML, but the converted PHP page.
Your 0de7d861c1cb42e2c9c40884b7e83a8a.php is the converted PHP page.



So if I add a new HTML page, how do I get him to convert to PHP?



You take your own HTML page down the View folder and access it through the appropriate path

For example, this path car_project/application/home/view/work/login.html the HTML page inside
Can be accessed through this path http://localhost/car_project/index.php/Home/Work/login/
The corresponding PHP file will be generated automatically after access




All of your HTML will be converted into a ". php" file through the TP framework, and the final display on the browser is not the original HTML, but the converted PHP page.
Your 0de7d861c1cb42e2c9c40884b7e83a8a.php is the converted PHP page.



So if I add a new HTML page, how do I get him to convert to PHP?



You take your own HTML page down the View folder and access it through the appropriate path

Yes, it can be generated automatically, but I am now on the new HTML to execute a section of the code to display the database how to write it I use {$userData [' Ue_account ']} no response




All of your HTML will be converted into a ". php" file through the TP framework, and the final display on the browser is not the original HTML, but the converted PHP page.
Your 0de7d861c1cb42e2c9c40884b7e83a8a.php is the converted PHP page.



So if I add a new HTML page, how do I get him to convert to PHP?



You take your own HTML page down the View folder and access it through the appropriate path

Yes, it can be generated automatically, but I'm now going to write a piece of code that shows the contents of the database on this new HTML. I didn't respond with {$userData [' Ue_account ']}



I found that "{$Think. Session.adminuser}" can display the contents of the database, but I "{$Think. Session.zcinfo}" will not show anything!! Blank Solver "{$Think. Session.adminuser}" Is this variable going to be set? But I searched the whole thing, and I didn't find the variable for adminuser. This is the value that shows the Suer field of the Database Mer table, and then this "{$ Think.session.zcinfo} "is not displayed in the name table in the user field of the value, I am the TP frame just start do not know how to do, please help to solve the next!! It's urgent.

The files under the cache are all cached files, you can find the option to close the cache in the development manual, you can turn it off!




All of your HTML will be converted into a ". php" file through the TP framework, and the final display on the browser is not the original HTML, but the converted PHP page.
Your 0de7d861c1cb42e2c9c40884b7e83a8a.php is the converted PHP page.



So if I add a new HTML page, how do I get him to convert to PHP?



You take your own HTML page down the View folder and access it through the appropriate path

Yes, it can be generated automatically, but I am now on the new HTML to execute a section of the code to display the database how to write it I use {$userData [' Ue_account ']} no response



Do you have a controller to write the corresponding?





All of your HTML will be converted into a ". php" file through the TP framework, and the final display on the browser is not the original HTML, but the converted PHP page.
Your 0de7d861c1cb42e2c9c40884b7e83a8a.php is the converted PHP page.



So if I add a new HTML page, how do I get him to convert to PHP?



You take your own HTML page down the View folder and access it through the appropriate path

Yes, it can be generated automatically, but I am now on the new HTML to execute a section of the code to display the database how to write it I use {$userData [' Ue_account ']} no response



Do you have a controller to write the corresponding?




With the controller,


This is the code for my controller.
!--? phpnamespace Home\controller;use Think\controller;class Logincontroller    Extends controller{public Function index () {$this--->display (' index/login '); The Public Function Logincl () {if (is_post) {$user = M (' member ')->where (AR   Ray (' mb_username ' = + Admin))->find (); In the HTML I use {$Think. Session.adminuser}, the code can display my current login account, but I use the following {$Think. Session.test}, it will not show, blank, $test = M (' aconf      IG ')->where (Array (' Zcinfo '))->find (); My HTML with {$Think. Session.test} code this does not show, the value of the test variable, where the error, (Aconfig This is the database table name) session (' Test ', $test [' Zcinfo ']             ); My HTML with {$Think. Session.test} code this does not show, the value of the test variable, there is an error, (Aconfig This is the database table field name, I just want to display this field in the HTML value), Help SE                                                               Ssion (' Adminuser ', $user [' mb_username ']);                    $_session[' logintime '] = time ();        Die (""); }    }        }
  • 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.