I have the following index.php
<?php
ini_set("display_errors",true);
ini_set("display_startup_erros",1);
error_reporting(E_ALL | E_NOTICE | E_STRICT);
use CLASSES\UTIL\Constantes;
use CLASSES\UTIL\Util;
$util = new Util();
$constantes = new Constantes($util);
$constantesSite = $constantes->getSite();
?>
<!doctype html>
<html>
<head>
<title><?php echo $constantesSite["tituloSite"]; ?></title>
<?php require_once "global/meta/meta.ini"; ?>
</head>
<body>
<?php require_once "classes/mvc/visao/cadastraAdministradores.php"; ?>
</body>
</html>
and autoload_psr4.php
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'CLASSES\' => array($baseDir . '/classes'),
'CLASSES\UTIL' => array($baseDir . '/classes/util'),
);
and árvore de diretório
\
\index.php
\classes
\classes\util
\classes\util\Constantes.php
\classes\util\Util.php
I'm getting this erro
:
Fatal error: Uncaught Error: Class 'CLASSES \ UTIL \ Util' not found in D: \ Jobs \ host \ htdocs \ crud \ index.php: 9 Stack trace: # 0 {main} thrown in D: \ Jobs \ host \ htdocs \ crud \ index.php on line 9
As much as I think I can not find erro
!