Home>Article>CMS Tutorial> How does Imperial CMS automatically refresh the homepage?

How does Imperial CMS automatically refresh the homepage?

藏色散人
藏色散人 Original
2019-12-11 09:11:38 3907browse

How does Imperial CMS automatically refresh the homepage?

How does Empire CMS automatically refresh the homepage?

The example in this article describes the method of automatically refreshing the homepage of Empire CMS. Share it with everyone for your reference. The specific implementation method is as follows:

It is recommended to study "Empire cms tutorial"

Add the following code to the home page template, try to put it at the bottom.

Code As follows:

Create the folder htmlindex in /e/ and set the 777 permission. Save the following code in /e/htmlindex/index_html.php, modify the refresh time, and change the 1200 in the file to what you want. Time, unit is seconds.

The code is as follows:

The above is the detailed content of How does Imperial CMS automatically refresh the homepage?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn