Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inny][Laravel] Błąd..
Randallmaster
post
Post #1





Grupa: Zarejestrowani
Postów: 677
Pomógł: 11
Dołączył: 18.11.2009

Ostrzeżenie: (0%)
-----


FatalErrorException in 5834626c2b58c8049ae9f7e40cbcfa7f line 0:
Method Illuminate\View\View::__toString() must not throw an exception

Niestety nic mi to nie mówi (IMG:style_emoticons/default/sad.gif)

Wiem że błąd występuje w tym miejscu:
{(IMG:style_emoticons/default/exclamation.gif) Form::open($settingsForm['formOpen']) (IMG:style_emoticons/default/exclamation.gif) } // w tej zminnej przesyłam array
{(IMG:style_emoticons/default/exclamation.gif) Form::open() (IMG:style_emoticons/default/exclamation.gif) } // jak usunę nie ma problemu :/ $settingsForm['formOpen']

Ten post edytował Randallmaster 7.08.2015, 21:05:29
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Randallmaster
post
Post #2





Grupa: Zarejestrowani
Postów: 677
Pomógł: 11
Dołączył: 18.11.2009

Ostrzeżenie: (0%)
-----


Ciągle ten sam błąd ;/

Moja zmienna:

  1. $settingsForm = [];
  2. $settingsForm['formOpen'] = [
  3. 'method' => 'POST',
  4. 'action' => 'PagesController@update',
  5. 'class' => 'form-horizontal',
  6. 'role' => 'form'
  7. ];


Smarty:

  1. {!! Form::open([$settingsForm['formOpen']]) !!} //tak nie działa pokazuje błąd Method Illuminate\View\View::__toString() must not throw an exception
  2. //lub
  3. {!! Form::open($settingsForm['formOpen']) !!} //tak niby dodaje do formularza ponieważ formularz poprawnie się wyświetli ale zaraz za formularzem jest ten sam błąd Method Illuminate\View\View::__toString() must not throw an exception
  4.  
  5. //a jeżeli zrobie tak:
  6. {!! Form::model(['method' => 'POST', 'action' => 'PagesController@insert', 'class' => 'form-horizontal', 'role' => 'form']) !!} //wpisze wszystko z palca to bez problemu strona się wczytuje
  7.  


Ogólnie pokazywanie błędów w Laravel trochę mnie denerwuje bo nie pisze dokładnie w czym jest problem tylko : Method Illuminate\View\View::__toString() must not throw an exception

Chyba że można sprawdzić w inny sposób błędy.

  1. {!! Form::model(['method' => 'POST', 'action' => 'PagesController@insert', 'class' => 'form-horizontal', 'role' => 'form']) !!}
  2. // czy też
  3. {!! Form::open(['method' => 'POST', 'action' => 'PagesController@insert', 'class' => 'form-horizontal', 'role' => 'form']) !!}
  4.  
  5. //open nie model
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 28.12.2025 - 03:31