Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
laravel刀片表单显示异常错误_Laravel - Fatal编程技术网

laravel刀片表单显示异常错误

laravel刀片表单显示异常错误,laravel,Laravel,首先为我的英语不好感到抱歉。 我有一个使用刀片模板引擎的laravel表单,它显示了一个异常错误。如果我删除代码并使用带有echo statite的php表单,一切正常,页面就会显示出来。 问题在哪里?这是我的密码 {{ HTML::ul($errors->all()) }} {{ Form::open(array('url' => 'news')) }} <div class="form-group"> {{ Form::label('name', 'Nam

首先为我的英语不好感到抱歉。 我有一个使用刀片模板引擎的laravel表单,它显示了一个异常错误。如果我删除代码并使用带有echo statite的php表单,一切正常,页面就会显示出来。 问题在哪里?这是我的密码

{{ HTML::ul($errors->all()) }}

{{ Form::open(array('url' => 'news')) }}

<div class="form-group">
    {{ Form::label('name', 'Name') }}
    {{ Form::title('name', Input::old('title'), array('class' => 'form-control')) }}
</div>

<div class="form-group">
    {{ Form::label('email', 'Email') }}
    {{ Form::text('email', Input::old('description'), array('class' => 'form-control')) }}
</div>

{{ Form::submit('Create the Nerd!', array('class' => 'btn btn-primary')) }}

{{ Form::close() }}

在laravel中没有Form::title这样的东西

试试这个

{{ HTML::ul($errors->all()) }}

{{ Form::open(array('url' => 'news')) }}

<div class="form-group">
    {{ Form::label('name', 'Name') }}
    {{ Form::text('name', Input::old('title'), array('class' => 'form-control')) }}
</div>

<div class="form-group">
    {{ Form::label('email', 'Email') }}
    {{ Form::text('email', Input::old('description'), array('class' => 'form-control')) }}
</div>

{{ Form::submit('Create the Nerd!', array('class' => 'btn btn-primary')) }}

{{ Form::close() }}

请确保您自己计算这些错误,因为这些是打字错误。

阅读Alley Shairus后回答:如果您使用任何类型的IDE智能开发环境,它都会显示这些错误。首先阅读文档总是一个好主意,因为在重构代码时,textmethod会改为titlw