C
C
chelkaz2016-04-20 19:44:46
Laravel
chelkaz, 2016-04-20 19:44:46

I broke my whole head, is this a BLADE joint?

Variable output from under Blade fails...
If
var_dump($all_poh)
then everything is OK

array (size=4)
  0 => string '4704' (length=4)
  1 => string '4054' (length=4)
  2 => string '3662' (length=4)
  3 => string '6096' (length=4)

If
print_r($all_poh);
then everything is ok
Array ( [0] => 4704 [1] => 4054 [2] => 3662 [3] => 6096 )

And if
{{$all_poh}}
Then the error is
htmlentities() expects parameter 1 to be string, array given

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2016-04-20
@chelkaz

The error told you everything - a string is expected, and an array is passed, everything is logical and simple

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question