Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne]Class 'Request' problem
roone
post 29.01.2016, 22:13:26
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 8.08.2015

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


Witam, mam problem ze stroną ponieważ po wejściu na strone wyskakuje błąd: Fatal error: Class 'Request' not found in /home/olop/domains/olop.pl/public_html/index.php on line 111
fragment podanej linia wygląda tak:
  1. /**
  2.  * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO'].
  3.  * If no source is specified, the URI will be automatically detected.
  4.  */
  5. try
  6. {
  7. // Attempt to execute the response
  8. $request = Request::factory();
  9. $response = $request->execute();
  10. }
  11. catch (Exception $e)

Czy jest mi ktoś w stanie pomóc?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
Pyton_000
post 29.01.2016, 22:15:36
Post #2





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

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


brak require/include z klasą lub 'use ' jeśli jest autoloader PSR4
Go to the top of the page
+Quote Post
roone
post 29.01.2016, 23:10:22
Post #3





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 8.08.2015

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


czyli co musze zrobic?
Go to the top of the page
+Quote Post
viking
post 30.01.2016, 08:07:13
Post #4





Grupa: Zarejestrowani
Postów: 6 378
Pomógł: 1116
Dołączył: 30.08.2006

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


W zależności od autoloadera na początku pliku wstawić use ....Request albo include 'Request.php'


--------------------
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 22:51