xml Miva - mvt:做模块加载ID和模块加载代码
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml Miva - mvt:做模块加载ID和模块加载代码相关的知识,希望对你有一定的参考价值。
<mvt:comment>
Load module details with its id
@param: module id
@param: module data loaded to this vairable (struct)
@return (boolean)
</mvt:comment>
<mvt:do file="g.Module_Library_DB" name="l.result" value="Module_Load_ID('module_id', l.settings:module)" />
<mvt:comment>
Load module details with its code
@param: module code
@param: module data loaded to this vairable (struct)
@return (boolean)
</mvt:comment>
<mvt:do file="g.Module_Library_DB" name="l.result" value="Module_Load_Code('module_code', l.settings:module)" />
<mvt:comment>
Example Usage
<mvt:do file="g.Module_Library_DB" name="l.result" value="Module_Load_Code('cssui', l.settings:module)" />
<mvt:do file="g.Module_Library_DB" name="l.result" value="Module_Load_ID('132', l.settings:module)" />
Example data loaded to `l.settings:module`:
```
Variable Entity Value
l.settings:module:active &mvt:module:active; 1
l.settings:module:api_ver &mvt:module:api_ver; 9.04
l.settings:module:code &mvt:module:code; cssui
l.settings:module:id &mvt:module:id; 132
l.settings:module:module &mvt:module:module; modules/ui/cssui.mvc
l.settings:module:name &mvt:module:name; Miva Merchant CSSUI
l.settings:module:provider &mvt:module:provider; Miva Merchant
l.settings:module:refcount &mvt:module:refcount; 1
l.settings:module:version &mvt:module:version; 9.0007
```
</mvt:comment>
以上是关于xml Miva - mvt:做模块加载ID和模块加载代码的主要内容,如果未能解决你的问题,请参考以下文章
xml Miva - 用mvt:do加载ReadyTheme导航设置
xml Miva - mvt:做Sitemap
xml Miva - 价格组查询与mvt:做
xml Miva - mvt:做BasektCharge_Insert
xml Miva - mvt:做Basket_Reset_Contents
xml Miva - mvt:做Basket_Reset_Contents