PHPCMS V9模板設(shè)計常用變量
用戶變量:
$_userid? ? 用戶id??
$_username 用戶名??
$_areaid? ?地區(qū)id??
$_groupid 用戶組id??
$_modelid? ??
$_amount 用戶資金??
$_point 用戶點數(shù)??
$_message? ??
$_email 用戶email
$_userid? ? 用戶id
$_username 用戶名
$_areaid? ?地區(qū)id
$_groupid 用戶組id
$_modelid
$_amount 用戶資金
$_point 用戶點數(shù)
$_message
$_email 用戶email
有關(guān)模型信息變量:?
$MODEL[$modelid][modelid]? ?模型id??
$MODEL[$modelid][name]? ? ? 模型名稱??
$MODEL[$modelid][tablename] 模型表??
$MODEL[$modelid][itemname] 項目名稱??
$MODEL[$modelid][workflowid] 工作流方案
$MODEL[$modelid][modelid]? ?模型id
$MODEL[$modelid][name]? ? ? 模型名稱
$MODEL[$modelid][tablename] 模型表
$MODEL[$modelid][itemname] 項目名稱
$MODEL[$modelid][workflowid] 工作流方案
如: view plaincopy to clipboardprint?
$MODEL[1][modelid] = 1??
$MODEL[1][name] = 新聞??
$MODEL[1][tablename] = news??
$MODEL[1][itemname] = 新聞??
$MODEL[1][workflowid] = 1
$MODEL[1][modelid] = 1
$MODEL[1][name] = 新聞
$MODEL[1][tablename] = news
$MODEL[1][itemname] = 新聞
$MODEL[1][workflowid] = 1
欄目信息變量:
$CATEGORY[$catid][catid] 欄目id??
$CATEGORY[$catid][module] 欄目所在的模塊??
$CATEGORY[$catid][type]? ?欄目類型??
$CATEGORY[$catid][modelid] 欄目所屬模型id??
$CATEGORY[$catid][catname] 欄目名稱??
$CATEGORY[$catid][style]? ?欄目名稱樣式??
$CATEGORY[$catid][image]? ?欄目圖片??
$CATEGORY[$catid][catdir] 欄目路徑??
$CATEGORY[$catid][url]? ? ?目錄url??
$CATEGORY[$catid][parentid] 欄目的父id??
$CATEGORY[$catid][arrparentid] 所有上級欄目ID??
$CATEGORY[$catid][parentdir]? ?父欄目的路徑??
$CATEGORY[$catid][child]? ? 是否有子欄目??
$CATEGORY[$catid][arrchildid] 欄目的所有子欄目id??
$CATEGORY[$catid][items]? ? 欄目信息數(shù)? ?
$CATEGORY[$catid][ismenu] 欄目是否顯示導航
$CATEGORY[$catid][catid] 欄目id
$CATEGORY[$catid][module] 欄目所在的模塊
$CATEGORY[$catid][type]? ?欄目類型
$CATEGORY[$catid][modelid] 欄目所屬模型id
$CATEGORY[$catid][catname] 欄目名稱
$CATEGORY[$catid][style]? ?欄目名稱樣式
$CATEGORY[$catid][image]? ?欄目圖片
$CATEGORY[$catid][catdir] 欄目路徑
$CATEGORY[$catid][url]? ? ?目錄url
$CATEGORY[$catid][parentid] 欄目的父id
$CATEGORY[$catid][arrparentid] 所有上級欄目ID
$CATEGORY[$catid][parentdir]? ?父欄目的路徑
$CATEGORY[$catid][child]? ? 是否有子欄目
$CATEGORY[$catid][arrchildid] 欄目的所有子欄目id
$CATEGORY[$catid][items]? ? 欄目信息數(shù)
$CATEGORY[$catid][ismenu] 欄目是否顯示導航
模塊信息變量:
$MODULE[phpcms][module] 模塊英文名稱??
$MODULE[phpcms][name]? ? 模塊中文名??
$MODULE[phpcms][path]? ? 模塊安裝路徑??
$MODULE[phpcms][url]? ? ?模塊鏈接URL??
$MODULE[phpcms][iscore] 是否系統(tǒng)模塊??
$MODULE[phpcms][version] 版本號
$MODULE[phpcms][module] 模塊英文名稱
$MODULE[phpcms][name]? ? 模塊中文名
$MODULE[phpcms][path]? ? 模塊安裝路徑
$MODULE[phpcms][url]? ? ?模塊鏈接URL
$MODULE[phpcms][iscore] 是否系統(tǒng)模塊
$MODULE[phpcms][version] 版本號
系統(tǒng)變量($PHPCMS):
$PHPCMS[phpcmsusername] => Phpcms 官方網(wǎng)站帳號??
$PHPCMS[phpcmspassword] => Phpcms 官方網(wǎng)站密碼??
$PHPCMS[sitename] => 網(wǎng)站名稱??
$PHPCMS[siteurl] => 網(wǎng)站地址??
$PHPCMS[ishtml] => 生成Html??
$PHPCMS[fileext] => 生成文件擴展名??
$PHPCMS[enable_urlencode] => 啟用內(nèi)容頁URL加密轉(zhuǎn)換??
$PHPCMS[meta_title] => Title(網(wǎng)站標題)??
$PHPCMS[meta_keywords] => Meta Keywords(網(wǎng)頁關(guān)鍵詞)??
$PHPCMS[meta_description] => Meta Description(網(wǎng)頁描述)??
$PHPCMS[copyright] => 版權(quán)信息??
$PHPCMS[icpno] => 網(wǎng)站ICP備案序號??
$PHPCMS[pageshtml] => 分頁代碼??
$PHPCMS[segmentclass] => 中文分詞方式??
$PHPCMS[enablegetkeywords] => 啟用自動提取關(guān)鍵詞功能??
$PHPCMS[areaid] => 網(wǎng)站默認地區(qū)??
$PHPCMS[editor_max_data_hour] => 數(shù)據(jù)恢復保留時間??
$PHPCMS[editor_interval_data] => 數(shù)據(jù)恢復自動保存時間間隔??
$PHPCMS[category_count] => 開啟欄目統(tǒng)計??
$PHPCMS[show_hits] => 顯示瀏覽次數(shù)??
$PHPCMS[maxpage] => 列表頁最大頁數(shù)??
$PHPCMS[pagesize] => 列表頁默認信息數(shù)(條)??
$PHPCMS[autoupdatelist] => 更新內(nèi)容時列表頁自動生成頁數(shù)??
$PHPCMS[search_time] => 搜索時間間隔??
$PHPCMS[search_maxresults] => 搜索返回最多的結(jié)果數(shù)??
$PHPCMS[search_pagesize] => 搜索每頁信息數(shù)??
$PHPCMS[adminaccessip] =>? ?
$PHPCMS[maxloginfailedtimes] => 后臺最大登陸失敗次數(shù)??
$PHPCMS[maxiplockedtime] => IP鎖定時間??
$PHPCMS[enable_ipbanned] => IP訪問禁止??
$PHPCMS[minrefreshtime] => 連續(xù)兩次刷新最短時間間隔??
$PHPCMS[filter_word] => 非法詞語列表??
$PHPCMS[thumb_enable] => 允許前臺上傳附件??
$PHPCMS[thumb_width] => 縮略圖寬度??
$PHPCMS[thumb_height] => 縮略圖高度??
$PHPCMS[watermark_enable] => 啟用縮略圖功能??
$PHPCMS[watermark_minwidth] => 水印寬度??
$PHPCMS[watermark_minheight] => 水印高度??
$PHPCMS[watermark_img] => 水印圖片地址??
$PHPCMS[watermark_pct] => 水印透明度??
$PHPCMS[watermark_quality] => JPEG 水印質(zhì)量??
$PHPCMS[watermark_pos] => 水印添加位置??
$PHPCMS[mail_type] => 郵件發(fā)送方式??
$PHPCMS[mail_server] => 郵件服務(wù)器地址??
$PHPCMS[mail_port] => 郵件服務(wù)器端口??
$PHPCMS[mail_user] => 郵箱帳號??
$PHPCMS[mail_password] => 郵箱密碼??
$PHPCMS[mail_sign] => 郵件簽名??
$PHPCMS[enablepassport] => 是否啟用正向通行證??
$PHPCMS[passport_file] => 整合程序??
$PHPCMS[passport_charset] => 整合程序字符集??
$PHPCMS[passport_url] => 通行證接口地址??
$PHPCMS[passport_key] => 通行證私有密鑰??
$PHPCMS[enableserverpassport] => 是否啟用反向通行證??
$PHPCMS[passport_serverurl] => 反向通行證接口地址??
$PHPCMS[passport_registerurl] => 通行證會員注冊地址??
$PHPCMS[passport_loginurl] => 通行證會員登錄地址??
$PHPCMS[passport_logouturl] => 通行證會員退出地址??
$PHPCMS[passport_getpasswordurl] => 通行證會員找回密碼地址??
$PHPCMS[passport_serverkey] => 通行證私有密鑰??
$PHPCMS[passport_expire] => 驗證字串有效期(秒):??
$PHPCMS[uc] => 是否啟動UcenterClient 配置??
$PHPCMS[uc_api] => Ucenter api 地址??
$PHPCMS[uc_ip] => Ucenter 主機IP地址??
$PHPCMS[uc_dbhost] => Ucenter 數(shù)據(jù)庫主機名??
$PHPCMS[uc_dbuser] => Ucenter 數(shù)據(jù)庫用戶名? ? ? ?
$PHPCMS[uc_dbpwd] => Ucenter 數(shù)據(jù)庫密碼??
$PHPCMS[uc_dbname] => Ucenter 數(shù)據(jù)庫名? ? ?
$PHPCMS[uc_dbpre] => Ucenter 數(shù)據(jù)庫表前綴??
$PHPCMS[uc_charset] => Ucenter 數(shù)據(jù)庫字符集??
$PHPCMS[uc_appid] => 應(yīng)用id(APP ID)??
$PHPCMS[uc_key] => Ucenter 通信密鑰??
$PHPCMS[enabletm] => 是否啟動擴展設(shè)置??
$PHPCMS[qq] => QQ??
$PHPCMS[msn] => MSN??
$PHPCMS[skype] => SKYPE??
$PHPCMS[taobao] => 阿里旺旺(淘寶版)? ?
$PHPCMS[alibaba] => 阿里旺旺(貿(mào)易通版)??
$PHPCMS[version] => 版本號
///////////////////////////////////////////////////////////////////
Phpcms V9 文件目錄結(jié)構(gòu)
根目錄
|? –? api? 接口文件目錄
|? –? caches 緩存文件目錄
? ? ? ?|? – configs 系統(tǒng)配置文件目錄
? ? ? ?|? – caches_* 系統(tǒng)緩存目錄
|? –? phpcms? phpcms框架主目錄
? ? ? ?|? – languages 框架語言包目錄
? ? ? ?|? – libs 框架主類庫、主函數(shù)庫目錄
? ? ? ?|? – model 框架數(shù)據(jù)庫模型目錄
? ? ? ?|? – modules 框架模塊目錄
? ? ? ?|? – templates 框架系統(tǒng)模板目錄
|? –? phpsso_server? phpsso主目錄
|? –? statics? 系統(tǒng)附件包
? ? ? ?|? – css 系統(tǒng)css包
? ? ? ?|? – images 系統(tǒng)圖片包
? ? ? ?|? – js 系統(tǒng)js包
|? –? uploadfile? 網(wǎng)站附件目錄
|? –? admin.php? 后臺管理入口
|? –? index.php? 程序主入口
|? –? crossdomain.xml? FLASH跨域傳輸文件
|? –? robots.txt 搜索引擎蜘蛛限制配置文件
|? –? favicon.ico? 系統(tǒng)icon圖標
更多相關(guān)知識,請訪問?PHP中文網(wǎng)??!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Environment variables are the path to the location (or environment) where applications and programs run. They can be created, edited, managed or deleted by the user and come in handy when managing the behavior of certain processes. Here's how to create a configuration file to manage multiple variables simultaneously without having to edit them individually on Windows. How to use profiles in environment variables Windows 11 and 10 On Windows, there are two sets of environment variables – user variables (apply to the current user) and system variables (apply globally). However, using a tool like PowerToys, you can create a separate configuration file to add new and existing variables and manage them all at once. Here’s how: Step 1: Install PowerToysPowerTo

Strict mode was introduced in PHP7, which can help developers reduce potential errors. This article will explain what strict mode is and how to use strict mode in PHP7 to reduce errors. At the same time, the application of strict mode will be demonstrated through code examples. 1. What is strict mode? Strict mode is a feature in PHP7 that can help developers write more standardized code and reduce some common errors. In strict mode, there will be strict restrictions and detection on variable declaration, type checking, function calling, etc. Pass

Instance variables in Java refer to variables defined in the class, not in the method or constructor. Instance variables are also called member variables. Each instance of a class has its own copy of the instance variable. Instance variables are initialized during object creation, and their state is saved and maintained throughout the object's lifetime. Instance variable definitions are usually placed at the top of the class and can be declared with any access modifier, which can be public, private, protected, or the default access modifier. It depends on what we want this to be
![Internal error: Unable to create temporary directory [Resolved]](https://img.php.cn/upload/article/000/000/164/168171504798267.png?x-oss-process=image/resize,m_fill,h_207,w_330)
Windows system allows users to install various types of applications on your system using executable/setup files. Recently, many Windows users have started complaining that they are receiving an error named INTERNALERROR:cannotCreateTemporaryDirectory on their systems while trying to install any application using an executable file. The problem is not limited to this but also prevents the users from launching any existing applications, which are also installed on the Windows system. Some possible reasons are listed below. Run the executable to install without granting administrator privileges. An invalid or different path was provided for the TMP variable. damaged system

Python is widely used in a wide range of fields with its simple and easy-to-read syntax. It is crucial to master the basic structure of Python syntax, both to improve programming efficiency and to gain a deep understanding of how the code works. To this end, this article provides a comprehensive mind map detailing various aspects of Python syntax. Variables and Data Types Variables are containers used to store data in Python. The mind map shows common Python data types, including integers, floating point numbers, strings, Boolean values, and lists. Each data type has its own characteristics and operation methods. Operators Operators are used to perform various operations on data types. The mind map covers the different operator types in Python, such as arithmetic operators, ratio

Using Ajax to obtain variables from PHP methods is a common scenario in web development. Through Ajax, the page can be dynamically obtained without refreshing the data. In this article, we will introduce how to use Ajax to get variables from PHP methods, and provide specific code examples. First, we need to write a PHP file to handle the Ajax request and return the required variables. Here is sample code for a simple PHP file getData.php:

jQuery is a JavaScript library widely used in web development. It provides many simple and convenient methods to operate web page elements and handle events. In actual development, we often encounter situations where we need to determine whether a variable is empty. This article will introduce several common methods of using jQuery to determine whether a variable is empty, and attach specific code examples. Method 1: Use the if statement to determine varstr="";if(str){co

Detailed explanation and code examples of const in C In C language, the const keyword is used to define constants, which means that the value of the variable cannot be modified during program execution. The const keyword can be used to modify variables, function parameters, and function return values. This article will provide a detailed analysis of the use of the const keyword in C language and provide specific code examples. const modified variable When const is used to modify a variable, it means that the variable is a read-only variable and cannot be modified once it is assigned a value. For example: constint
