ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
## 配置文件 配置文件位置在项目下 `Config/template.php` 。 ``` <?php return [ //--视图(模板)所在文件夹,相对于项目所在目录,如果在此目录下存在模板,将不会调用当前Module的模板 'view_dir' => 'view', //--编译好的模板存放的位置,相对于缓存存放位置 'view_c_dir' => 'view_c', //静态视图缓存文件夹,相对于缓存存放位置 'view_cache_dir' => 'view', //--模板文件后缀 'view_suffix' => '.html', //--是否开启模板静态化,默认关闭 'view_cache' => false, //--模板标签配置 'leftDelim' => '\{', 'rightDelim' => '\}', //--默认静态缓存时间 'view_cache_time' => 10, //--公共文件存放位置 'public_path' => Config::router ( 'url_path' ) . '/public/' , //--CSS存放位置 'css_path' => Config::router ( 'url_path' ) .'/public/css/', //--js存放位置 'js_path' => Config::router ( 'url_path' ) .'/public/js/', //--img存放位置 'img_path' => Config::router ( 'url_path' ) . '/public/images/', ]; ```