I have the following problem that I am having a hard time deciphering. I have the files distributed as follows:
/
|___control
| |___usuarios.php
|___vista
|___addUser.php
|___modelo
| |___conexion.php
|___index.php
The following happens, both the "addUser.php" and "index.php" files use the "usuarios.php" file. The file "users.php" has a require_once()
of the file "connection.php".
And since "addUser.php" and "index.php" are in different places in the project, the _path_
one that is added in "usuarios.php" creates conflicts require_once()
.
Any idea how to solve?