think-template icon indicating copy to clipboard operation
think-template copied to clipboard

包含文件的用法,在使用内置服务器时有问题

Open augushong opened this issue 3 years ago • 0 comments

{include file="../application/view/default/public/header.html" /}

如果是正常的部署并且设置目录到public,那么这个包含文件是正常的, 此时是基于public目录开始的. 但如果是使用:

think php run

就会出现问题,就不是基于项目public目录而是项目根目录了.

augushong avatar Feb 24 '22 08:02 augushong