tp6 tpl_replace_string设置 应用下配置view.php

之前一直用thinkcmf,这次因为特别需要,得用tp6,从头做一套cms系统

多应用模式配置好之后,在需要配置的应用目录下新建config目录,视图这里是view.php,之前一直用config.php,结果各种不生效。
在这里插入图片描述
然后配置好tpl_replace_string

return [
 
    'tpl_replace_string' => [
        '__STATIC__'=>'/static',   
    ],
    // 是否开启模板编译缓存,设为false则每次都会重新编译
    'tpl_cache'          => false, 
];

posted @ 2020-06-02 02:24  Twoknives_li  阅读(267)  评论(0)    收藏  举报