## 關于全局標簽
* 全局標簽是指在任意插件的模板里任意位置都可以直接調用的標簽,通常是系統的固定配置或預定義全局變量等。
## 使用范圍
> apps/user/theme/模板主題/全部模板頁
> apps/****/theme/模板主題/全部模板頁 (其它任意插件模板)
## 普通標簽
普通標簽是基于呆錯開發框架的系統模塊預先定義的常用基礎標簽,全站都可以直接使用。
```
{$module} 應用名稱(模塊名)
{$controll} 控制器名稱
{$action} 操作名稱
{$domain} 當前域名
{$file} 當前入口文件
{$page} 當前分頁
{$path_root} 網站根目錄
{$path_upload} 上傳目錄
{$path_view} 模板主題目錄
{$user.user_id} 當前登錄用戶ID
{$user.user_name} 當前登錄用戶名稱
{$user.user_nice_name} 當前登錄用戶呢稱
{$user.user_email} 當前登錄用戶的郵箱
{$user.user_mobile} 當前登錄用戶的手機號
{$user.user_token} 當前登錄用戶的令牌
{$user.user_status} 當前登錄用戶的狀態
{$user.user_capabilities} 當前登錄用戶組(數組)
```
## 系統配置
使用上文提到的函數標簽可以使用呆錯開發框架系統的所有系統模塊配置與框架的基礎模塊配置。
```
{:config('common.site_status')} 網站狀態on/off
{:config('common.site_captcha')} 驗證碼狀態on/off
{:config('common.site_name')} 站點標題
{:config('common.site_domain')} 網站主域名
{:config('common.wap_domain')} 移動端域名
{:config('common.site_icp')} 網站備案
{:config('common.site_tongji')} 網站統計
{:config('common.site_close')} 關閉提示
```
## 應用配置
同樣使用函數標簽可以讀取呆錯會員中心插件的所有配置,在安裝了呆錯會員中心插件后,所有模塊都可以讀取此插件的配置信息。
```
{:config('user.theme')} 默認模板主題
{:config('user.theme_wap')} 移動端模板主題
{:config('user.page_size')} 默認分頁
{:config('user.title_login')} 登錄頁標題
{:config('user.keywords_login')} 登錄頁關鍵字
{:config('user.description_login')} 登錄頁描述
{:config('user.title_register')} 注冊頁標題
{:config('user.keywords_register')} 注冊頁關鍵字
{:config('user.description_register')} 注冊頁描述
{:config('user.score_register')} 注冊贈送積分
{:config('user.score_recharge')} 積分充值比例
{:config('user.score_expire')} 用戶組周期
{:config('user.score_group_subscriber')} 用戶組積分(注冊會員)
{:config('user.score_group_edit')} 用戶組積分(編輯)
```