Answer the question
In order to leave comments, you need to log in
Why can't he see the class?
File index.php
use View;
require('../autoload.php'); // composer
$view = new IndexView();
$view = new \View\IndexView();
"autoload": {
"psr-4": {
"Model\\": "model/",
"View\\": "view/",
"Controller\\": "controller/"
}
}
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