jjzjj

php - 我怎样才能理顺 Laravel blade @extends 的执行顺序?

在myattemptstofindawaytopassavariablebyreferencetoablade@include,我构建了一个简单的测试用例,它也证明了模板的执行顺序非常不稳定。有没有办法在执行顺序很重要(特别是关于部分)的情况下使用带有变量的Blade模板?测试用例:testLayout.blade.php{{"thisisthelayout:".++$tabindex.""}}@include('testInclude'){{"thisisthelayoutafterinclude:".++$tabindex.""}}@include('testInclude',ar