'php', 'layout_on' => true, 'layout_name' => 'main/layout', // 视图输出字符串内容替换 'tpl_replace_string' => [ '{__PUBLIC_PATH__}' => '/', //public 目录 '{__STATIC_PATH__}' => '/static', //全局静态目录 '{__SYSTEM_PATH__}' => '/static/system', //全局静态目录 ] ];