本配置文件用于模塊的附加屬性,例如模塊電話、聯系人、售價等等參數,形如:
增加文件diy/app/模塊目錄/templates/my/config.html
<div class="form-group "> <label class="col-md-2 control-label">測試屬性:</label> <div class="col-md-9"> <input class="form-control input-xlarge" type="text" name="data[setting][test]" value="{$data.setting.test}"> <span class="help-block">測試提示文</span> </div> </div>
前端調用方式:
{$ci->get_cache('module-'.SITE_ID.'-模塊目錄', 'setting', 'test')} test是你的自定義名稱
文檔最后更新時間:2018-12-19 11:43:48