Answer the question
In order to leave comments, you need to log in
How does psr-4 download work?
Hello. In composer.json
{
"autoload": {
"psr-4": {
"App\\" : "app/"
}
}
}
app/kontrollers/index.php
require_once '../vendor/autoload.php';
$index = new \App\Kontrollers\index();
$index->in();
Fatal error: Class 'App\Kontrollers\index' not found in /home/v-smerti/projekt/star_labs/api/public/index.php on line 5
namespace \App\Kontrollers\index;
class index {
public function in() {
echo'0789078907890';
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question