Home > Backend Development > PHP Tutorial > 小弟我想在后台通过数据库来控制网站的开和关,如果状态为on则可以正常浏览,若为off则出现“网站维护中”并自动返回

小弟我想在后台通过数据库来控制网站的开和关,如果状态为on则可以正常浏览,若为off则出现“网站维护中”并自动返回

WBOY
Release: 2016-06-13 12:21:24
Original
1342 people have browsed it

我想在后台通过数据库来控制网站的开和关,如果状态为on则可以正常浏览,若为off则出现“网站维护中”并自动返回,
我想在后台通过数据库来控制网站的开和关,如果状态为on则可以正常浏览,若为off则出现“网站维护中”并自动返回,需要怎么做,说一下思路
------解决思路----------------------
思路在你不是自己都说清楚了吗,load页面的时候读下database的那个字段,然后根据结果来决定显示哪个view

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template