Cainiao question: why can't I implement the php code of our company's website when I copy the php code to another php file? now I want to combine the functions of the two interfaces. Html and the corresponding php are found. Why can't I copy one of them to another php file. Is the same website ......
The code is as follows:
Php:
_ Tpl_vars ['data'] ['title'];?>
_ Tpl_vars ['data'] ['description'];?>
Price:¥ _ Tpl_vars ['data'] ['bwjiage'];?>
Market Price: ¥ _ Tpl_vars ['data'] ['scjiage'];?>
Vehicle type
_ Tpl_vars ['leixing']; if (! Is_array ($ _ from )&&! Is_object ($ _ from) {settype ($ _ from, 'array');} if (count ($ _ from )):
Foreach ($ _ from as $ this-> _ tpl_vars ['K'] => $ this-> _ tpl_vars ['V']):
?>
_ Tpl_vars ['K'] = 0):?> Class = "hover" Lx =" _ Tpl_vars ['V'];?>
"> _ Tpl_vars ['V'];?>
Down payment amount:
200 400 600 800 1000 1500 2000
Number of installments per month:
_ Tpl_vars ['qishu']; if (! Is_array ($ _ from )&&! Is_object ($ _ from) {settype ($ _ from, 'array');} if (count ($ _ from )):Foreach ($ _ from as $ this-> _ tpl_vars ['V']):?> _ Tpl_vars ['V'];?>Months
What can I do?
Note: _ Tpl_vars ['data'] ['zhuming '];?>
> View the staging process
Html:
{$ Data. title }}
{$ Data. description }}
Price:$ {$ Data. bwjiage }}Market price: $ {$ data. scjiage }}
Vehicle type
{Foreach from = $ leixing item = v key = k }}
{$ V }}
{{/ Foreach }}
Down payment amount:
200 400 600 800 1000 1500 2000
Number of installments per month:
{Foreach from = $ qishu item = v }} {$ V} months {{/ Foreach }}
What can I do?
Note: {$ data. zhuming }}
> View the staging process
{$ Data. content }}
Optional
{Fflist catid = 29 pagesize = "7" to = "kxjx" order = "'sort 'asc, 'create _ time' desc "}}
{Foreach from = $ kxjx item = kx }}
-
{{$ Kx. title }}
{{/ Foreach }}
I'm a Cainiao, so do not try it if you are mentally retarded.
Reply to discussion (solution)
What are you copying? one is the template engine, and the other is that the native PHP file does not work ..
What are you copying? one is the template engine, and the other is that the native PHP file does not work ..
I have never touched on php, and I can't do anything...
It seems to be a template file. I want to modify it, but I don't know how to modify it. you can modify some styles in the template file. But it cannot be changed as long as variables and methods are involved. So I found the php native file and modified it there, but it still cannot be changed. what is the problem ???
What are you copying? one is the template engine, and the other is that the native PHP file does not work ..
I have never touched on php, and I can't do anything...
It seems to be a template file. I want to modify it, but I don't know how to modify it. you can modify some styles in the template file. But it cannot be changed as long as variables and methods are involved. So I found the php native file and modified it there, but it still cannot be changed. what is the problem ???
I found the php file in a folder named templates_c, as if I saw on the Internet that this is the meaning of the compiled folder, isn't it possible to directly modify the compiled php?
Templates_c is a temporary file. every time the program runs, a new file is generated and overwritten.
Since the templates_c directory is available, you are using the Smarty template engine.
It is recommended that you carefully read the Smarty3 User Manual. you 'd better download a copy for future use.
Https://www.baidu.com? Ie = UTF-8 & wd = Smarty3 + % E6 % 89% 8B % E5 % 86% 8C
Templates_c is a temporary file. every time the program runs, a new file is generated and overwritten.
Which file should be modified to take effect? is there an original file or something? Thank you!
Since the templates_c directory is available, you are using the Smarty template engine.
It is recommended that you carefully read the Smarty3 User Manual. you 'd better download a copy for future use.
Https://www.baidu.com? Ie = UTF-8 & wd = Smarty3 + % E6 % 89% 8B % E5 % 86% 8C
I am reading this, but it may take a while. Can you tell me how to solve this problem before that? the boss will remind me every day, and my website artist will burst into tears
Modify the files under the templates Directory
Modify the files under the templates Directory
After reading the php file in the templates folder, it seems very different from the php file in the templates_c folder. it seems that it does not correspond to html. Are some method classes. And it will not be related to specific html. Why can't some variables be used on the same html ???
Modify the files under the templates Directory
After reading the php file in the templates folder, it seems very different from the php file in the templates_c folder. it seems that it does not correspond to html. Are some method classes. And it will not be related to specific html. Why can't some variables be used on the same html ???
I found these php files in templates, and they don't feel like html functions.
If you find another file with a file named ".tpl,html .html" under it
If you find another file with a file named ".tpl,html .html" under it
Will it happen that my website under ftp is incomplete? I used to delete the. cs file after compilation when I was doing. net. does php have this situation?