Home > php教程 > php手册 > phpcms $CATEGORYS 变量

phpcms $CATEGORYS 变量

WBOY
Release: 2016-06-06 20:11:49
Original
1489 people have browsed it

在做模板过程中,发现有些页面无法使用$CATEGORYS 变量,以下这段代码,是检查$CATEGORYS变量是否存在,如果不存在则进行声明。?php if(!isset($CATEGORYS)) { $CATEGORYS = getcache('category_content_'.$siteid,'commons'); } ?一般我是习惯直接放到通用

在做模板过程中,发现有些页面无法使用$CATEGORYS 变量,以下这段代码,是检查$CATEGORYS变量是否存在,如果不存在则进行声明。 一般我是习惯直接放到通用的头部模板里,这样,调用头部的页面就都会有$CATEGORYS这个栏目信息的变量了。
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template