method One: Write the static code directly into the page/index.php and point it through index.php
Architecture:
index.php
page/index.php + page/index_page.php
Description:write in index.php
(a) when there is no PHP static page,
① with one of them, after performing the modified operation, select + Copy (page/index.php) → select + Paste (page/index_page.php)
② or just create a new page/index.php, but before the first svn update with PHP code ,
Remember to back up the page/index.php and rename it to page/index_page.php.
In the future development, each time changes page/index.php, remember to overwrite the contents of page/index_page.php.
(b) Once the PHP code is added to the index.php, it is not possible to paste the entire selection overlay. You can only change two places manually.
To view the static page effect, you need to modify: $ModeUrl = "index_page"; then enter: 192.168.1.1/index. php
Method Two: Write the static code directly into the page/index.html, and point to it by index.php.
Architecture:
index.php
page/index.php + page/index.html
Written in index.php
Description: Ibid.
It's no different than method one, but after submitting SVN, you can force the backend to re-build a corresponding PHP file. or force yourself to build a corresponding. php in the commit.
When you want to see the static page effect after you have a PHP static page,
Need to modify: require_once (' page/'. $ModeUrl. ' . html'), and then type: 192.168.1.1/index. php
Method Three: Write the static code directly into the index.html
Architecture:
index.php + index.html
page/index.php
Build index.html directly on the outer layer. You can browse without index.php.
Description: recommended, in practice, to see if it is handy , index.html and page/index.php not in a folder, follow-up development, manual synchronization is more troublesome.
Note: This method, when page/index.html→page/index.php, do not need to modify the CSS, JS and other file reference path.
When you want to view the static page effect after you have a php static page, enter 192.168.1.1/index directly. HTML
Method Four: Write the static code directly into the page/index.html, not through the index.php point
Architecture:
index.php
Page/index.html + page/index.php
Unlike method two, which is not related to index.php, browse through 192.168.1.1/page/index.html.
Description: very not recommended , because page/index.html→page/index.php, you need to modify the CSS, JS and other file reference path (up one layer). More trouble.
When you want to see the static page effect after you have a PHP static page, you need to enter 192.168.1.1/page/index. html
Appendix: How to use the Open source framework:
Amui the unpacked package directly into the project's and page-sibling directories
In development, how to match back end, save your static HTML page