Welcome Guest, Not a member yet? Register   Sign In
Class not found error
#1

Following the procedure for Managing your Applications I installed the starter app then created two directories with their own app/ and public/ subdirectories, respectively, and modified the Config/Paths.php $systemDirectory, $writableDirectory, and $testDirectory in each to reflect the change. However, after
Code:
composer require guzzlehttp/guzzle
and calling
PHP Code:
var_dump(new \GuzzleHttp\Client()); 
on the default Home.php Controller I get a Class "GuzzleHttp\Client" not found error. If on the other hand I leave the app/ and public/ subdirectories and revert Config/Paths.php to its default values the var_dump works just fine (i.e. the guzzle Client object is created successfully). What configuration variable am I neglecting to set in order to locate the appropriate namespace and class?
Reply


Messages In This Thread
Class not found error - by grimpirate - 12-10-2021, 09:13 PM
RE: Class not found error - by kenjis - 12-13-2021, 12:52 AM
RE: Class not found error - by SylviaWhite - 01-08-2022, 02:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB