模板常量

__ROOT__:
网站根目录,不带/;

__WEB_ROOT__: 网站资源根目录,不带/,如果以前版本用__ROOT__来定位网站资源,x2.2.0以后最好用这个常量,方便以后cdn切换

__TMPL__:
当前模板根目录,带/;
如:前台 simplebootx 模板根目录是/themes/simplebootx/
后台 simplebootx模板根目录是/admin/themes/simplebootx/

__PUBLIC__:
public目录,不带/;

© ThinkCMF all right reserved,powered by Gitbook最后文件编辑时间: 2016-10-04 12:47:13

results matching ""

    No results matching ""