Autoloading does not recognize use command, after a submit?

2

<?php
namespace App\Controller;


class Action {
    
    function mostrarDado(){
        echo "Mostrando Dados....";
    }
    
}
<?php
$paramUser = $_GET['usuario'];
$paramSenha = $_GET['senha'];
var_dump($paramUser);
var_dump($paramSenha);

$act = new App\Controller\Action();
var_dump($act->mostrarDado());

?>
<?php

require_once 'vendor/autoload.php';
?>

<html>
<form action="App/Script/Script.php" method="get">
<input name="usuario">
<input name="senha">
<button type="submit"></button>
</form>
</html>
    
asked by anonymous 15.10.2018 / 15:02

0 answers