![]() |
帝国cms中在php代码里面怎么引用[!
直接把官方的解释贴给你看程序扩展变量说明:通过这些变量可实现各种更复杂的系统
1、列表模板变量说明:当前栏目id:$navclassid搜索或$GLOBALS[navclassid]通过这个变量可以输出这个栏目id的所有数据(如:select * from phome_enewsclass where classid='$GLOBALS[navclassid]') 2、内容模板变量说明:字段值数组:$navinfor调用方法:$navinfor[字段名],比如要显示"信息ID字段",那在模板里用:<?=$navinfor[id]?>即可输出(要开启模板支持程序代码) |
| All times are GMT +8. The time now is 07:54 PM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.