As a question, I have created a single PHP file. Now I want to import it to the dedecms template file head.htm. How can I associate it? The directly imported file displays the code in head.htm. I didn't explain how to deal with tags in DEDECMS? As a question, I have created a single PHP file. Now I want to import it to the dedecms template file head.htm. How can I associate it?
The directly imported file displays the code in head.htm. I didn't explain how to deal with tags in DEDECMS?
Reply content:
As a question, I have created a single PHP file. Now I want to import it to the dedecms template file head.htm. How can I associate it?
The directly imported file displays the code in head.htm. I didn't explain how to deal with tags in DEDECMS?
You need to use the dedecms template interpretation engine and load the template file according to the usage.
We recommend that you copy an existing file and modify it. In this way, you can view the effect at any time.
Previously, I wrote a related "tutorial" in my blog. In fact, it is very simple to load the template parsing class of zhimeng. Create example. php In the root directory. The Code is as follows:
SetTemplet ($ tempfile); // set the template file path $ pv-> Display (); // Display this page?>
Then create an example.htm template file in your current template directory. In this template file, you can useGlobal tag. More detailed introduction you can go to the blog View Original: http://www.xuewl.com/framework/dede_class_system_partview.html
Modify the index.html file in the root directory.