插件可使用預裝變量,已封裝在rp\\Plugin中,可繼承直接使用
| 名稱 | 說明 | 調用 |
| --- | --- |--- |
| App | 同主文件App | $this->App
| webConfig | 同webConfig配置 | $this->webConfig
| Db | 同Db數據庫 | $this->Db
| Db\_prefix | 數據庫前綴 | $this->Db\_prefix
| setConfig | 插件配置保存 | $this->setConfig(plugin, (array)data)
| getConfig | 插件配置獲取 | $this->getConfig(plugin)
| pluginName | 當前插件名稱 | $this->pluginName
| pluginPath | 當前插件相對路徑(系統根目錄) | $this->pluginPath
| tempUrl | (V1.9.4新增)當前模板相對路徑(系統根目錄) | $this->tempUrl
| admin | 管理員數據,checkFormAdmin驗證通過方可使用 | $this->admin