I'm trying to create a simple MVC system in which I have the following folder structure:
Arquivos de Código-Fonte - Pasta
Servlet - Pasta
UserServlet.class.php
Controller - Pasta
UserController.class.php
Model - Pasta
DAO - Pasta
UserDAO.class.php
VO - Pasta
UserVO.class.php
View - Pasta
userForm.php
index.php
I need to make my index.php
call the class Servlet
, for this I put the following code:
<?php
header('Location : Servlet/UserServlet.class.php?action=goHome');
?>
But the problem is that nothing happens and I need to call the Servlet
class so that I can handle which method I'm going to use. If anyone knows a solution, a way for me to be able to make an HTTP request on Servlet
will help me a lot.