samedi 23 janvier 2016

htmlentities() expects parameter 1 to be string, array given ..

my form code:

<p>{!!Form::open(array("","id"=>"form"))!!}</p>
<p>Initial barcode :&nbsp </p>
<p>{!! Form::text('initialbarcode',array("id"=>"initialbarcode"))!!}</p>
<p>Barcode3 :&nbsp </p>
<p>{!! Form::text('barcode3',array("id"=>"barcode3"))!!}</p>
<p>Quantity :&nbsp </p>
<p>{!! Form::text('qty',array("id"=>"qty"))!!}</p>
<p>Kgs :&nbsp </p>
<p>{!! Form::text('kgs',array("id"=>"kgs"))!!}</p>
<p>Price :&nbsp </p>
<p>{!! Form::text('price',array("id"=>"price"))!!}</p>
<p>{!! Form::text('name',array("id"=>"name"))!!}</p>
<p><select name="category" id="category"></p>
@foreach($options as $option)
<option>{{$option->category}}</option>
@endforeach
</select>
<p>{!! Form::close()!!}</p>

Here this code returns following error : htmlentities() expects parameter 1 to be string, array given (View: C:\Users\Toshiba\farmzop\resources\views\nonfz\nonfz.blade.php)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire