Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z namespace i USE
busterek
post
Post #1





Grupa: Zarejestrowani
Postów: 109
Pomógł: 0
Dołączył: 30.07.2006
Skąd: Łódź

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


Witajcie,
Nie wiem, czy to nie przedszkole, ale już po prostu jestem głupi.
Mam taki kawałek kodu:

  1. namespace DreamCommerce;
  2.  
  3. use DreamCommerce\ShopAppstoreLib\Client;
  4.  
  5. try
  6. {
  7. $client = \DreamCommerce\ShopAppstoreLib\Client::factory(
  8. Client::ADAPTER_BASIC_AUTH,
  9. 'entrypoint'=>'https://adres',
  10. 'username' => '...',
  11. 'password' => '...'
  12. )
  13. );
  14.  
  15. $resource = new \DreamCommerce\ShopAppstoreLib\Resource\Producer($client);
  16. var_dump($resource->get());
  17. }
  18. catch(DreamCommerce\ShopAppstoreLib\Exception\Exception $ex)
  19. {
  20. die($ex->getMessage());
  21. }
  22.  


Po wywołaniu dostaję komunikat błędu: Fatal error: Class 'DreamCommerce\ShopAppstoreLib\Client' not found in /srv/worek/shoper/DreamCommerce/index.php on line 7.

O co chodzi, i jak to poprawić(IMG:style_emoticons/default/questionmark.gif)

Ten post edytował busterek 17.08.2018, 15:06:00
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: 3.10.2025 - 02:24