如何在刀片中包含带有句号(.)的刀片文件作为文件名的一部分 [英] How to include a blade file which has a full stop (.) as part of the file name in blade
本文介绍了如何在刀片中包含带有句号(.)的刀片文件作为文件名的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有下面的路径的局部视图.
I have a partial view with the following path.
/views/acp/review/check.details.blade.php
我如何使用刀片包含此类文件,如果可以的话
How do I include such a file using blade because If I do
@include('views.acp.review.check.details')
我收到一个错误,因为它试图将check.details
解析为check/details
I get an error because It attempts to parse check.details
as check/details
请问我如何包含句号?
我不想重命名文件
推荐答案
Blade使用.作为目录分隔符,您可能不想更改它:)
Blade uses the . as directory separators and you probably don't want to change that :)
将文件重命名为:
/views/acp/review/check-details.blade.php
并使用:
@include('views.acp.review.check-details')
这篇关于如何在刀片中包含带有句号(.)的刀片文件作为文件名的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文