Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
augushong opened this issue Feb 24, 2022 · 0 comments
Open

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

augushong opened this issue Feb 24, 2022 · 0 comments

Comments

@augushong
Copy link

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

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

think php run

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant