2
I am using namespace to use classes in PHP, there is a part where I do
use StatusCorrida\StatusCorrida;
include('arquivo.php');
The arquivo.php ago
$var = new StatusCorrida();
this file makes use of these classes StatusCorrida, but the file does not recognize the namespace declared out of the archive.
The error that says is that the Statuscorrida class was not found.
What is the error message ?
– Diego Souza
That does not find the Class Statuscorrida
– Mateus Carvalho
The
arquivo.phpwhere you are including anothernamespacehas a namespace too? This question is important! If you can, put an excerpt of the code to make it easier to understand.– Wallace Maxters
edit the question with more information. It is very vague.
– Daniel Omine