多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
##**view路径** * * * * * ###*config* ~~~ //设__DIR__ = 'd:\example\config' // 原材料视图后缀名及目录 'tpl_material_ext' => '.tpl', 'tpl_material_path' => __DIR__.'/../resources/templates/', // 模板引擎编译后的视图文件 'tpl_part_ext' => '.tplc', 'tpl_part_path' => __DIR__.'/../storage/templates/part/', //再次拼装后的视图文件 'tpl_package_ext' => '.tpll', 'tpl_package_path' => __DIR__.'/../storage/templates/package/', ~~~ * * * * * ###*模版路径* + 优先取 tpl_path/[route分组/][语言/][主题/]文件名[后缀]; + 不存在则取 tpl_path/[route分组/][主题/]文件名[后缀]; + 即支持为单一语言设置独特模版 ~~~ /** * @example index */ d:/example/resourec/templates/[route分组/][语言/][主题/]index.tpl; ~~~ ~~~ /** * 分组为home/user,语言为zh-cn,主题为default * @example index */ //如果d:/example/resourec/templates/home/user/zh-cn/default/index.tpl不存在; //则为d:/example/resourec/templates/home/user/default/index.tpl; //仍然不存在保存 ~~~ ###*模版缓存* 零件层缓存:tpl_cache_path/[route分组/][语言/][主题/]文件名[后缀] ~~~ /** * @example index */ d:/example/storage/templates/cache/home/user/zh-cn/default/index.tplc ~~~ 组件缓存:tpl_last_path/[route分组/][语言/][主题/]文件名[后缀] ~~~ /** * @example index */ d:/example/storage/templates/last/home/user/zh-cn/default/index.tpll ~~~