I cannot initializate php class (win 11, xampp 8.2)

Hi guys;

I cannot initializate my classes…

I put in the begining of public/index.php this:

use App\DAO\MySQL\apiharustech\ParceirosDAO;

When i tried do instanciate:

$ParceirosDAO = new ParceirosDAO();

I have this error:

Fatal error: Uncaught Error: Class "App\DAO\MySQL\apiharustech\ParceirosDAO" not found in

What am I doing wrong ?


I found a solution; i put fhe full path;

require_once DIR . ‘/…/App/DAO/MySql/apiharustech/ConexaoAPI.php’;
require_once DIR . ‘/…/App/DAO/MySql/apiharustech/ParceirosDAO.php’;
require_once DIR . ‘/…/App/DAO/MySql/apiharustech/ClientesDAO.php’;

use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;

use Slim\Factory\AppFactory;

The code below doesn´t work

use App\DAO\MySQL\apiharustech\ParceirosDAO;
use App\DAO\MySQL\apiharustech\ClientesDAO;