Php 花括号不适用于laravel 4中的形式
我的表单标签有问题 尝试使用类似于Php 花括号不适用于laravel 4中的形式,php,laravel,laravel-4,Php,Laravel,Laravel 4,我的表单标签有问题 尝试使用类似于{{Form::label(“label”)}}的代码,但要使用label for=“label/label 尝试在app/start/global.php中添加这些,但问题仍然存在 Blade::setContentTags('{{', '}}'); // for variables and all things Blade Blade::setEscapedContentTags('{{{', '}}}'); // for esca
{{Form::label(“label”)}}
的代码,但要使用label for=“label/label
尝试在app/start/global.php中添加这些,但问题仍然存在
Blade::setContentTags('{{', '}}'); // for variables and all things Blade
Blade::setEscapedContentTags('{{{', '}}}'); // for escaped data
有什么解决办法吗?谢谢你的建议
UPD:我的视图文件有一个blade.php扩展名
UPD:
主要观点:
{{Form::open(["url"=>"/admin/goods", "method" => "post", 'files'=>true])}}
@include("admin.goods.form", array('tags' => "", 'props' => ""))
{{Form::close()}}
表单视图:
<div class="row">
{{Form::label("title")}}
{{Form::text("title", null, ["class"=>"form-control"])}}
</div>
{{Form::submit("Send", ["class"=>"btn btn-primary", "id" => "submitForm"])}}
{{Form::label(“title”)}
{{Form::text(“title”,null,[“class”=>“Form control”])}
{{表单::提交(“发送”,“类”=>“btn btn主”,“id”=>“提交表单”])}
您创建了blade文件吗?我认为它是为blade内置的,无需设置标记,无需设置标记并将视图保存为.blade.php
它应该work@CodingInsane我的视图文件有一个blade.php扩展名。如果您使用{{{{
}}}
,您能给我们看一下您的完整视图代码吗?(如果只是问题线周围的部分)