I got an error when trying to include my initial view, using the MVC and OOP pattern with PHP. According to the error, it is that it cannot find and/or open the template file, which does not make sense since the route address is correct, if you can help me with this problem I will appreciate it.
This is my controller:
public function index()
{
include_once '../Views/template.php';
}
Este es mi archivo index
$index = new RutasController;
$index->index();
I hope you can help me, if I find the solution I will share it with you.
Guys, the solution was very easy and simple, my mistake was removing the colon before the views folder and specifying the app folder. there would be something like this.