I'm new to PHP, I'm trying to require UserController.php from Controller.php but all I get is "HTTP ERROR 500" in browser. What's going on here?
Controller.php
class Controller
{
    public function __construct()
    {
    }
    public function call(){
        // echo 1;
        require_once "../Controllers/UserController.php";
    }
}
UserController.php
class UserController
{
    public function __construct()
    {
    echo '111111111';
}
public function hi(){
    echo  '1';
}
}
$a = new UserController();
$a->hi();
 
     
    