Closed Flashtheorie closed 2 years ago
Hello, I'm trying to redirect the user on his profile using:
/user/hisname
So I tried to use
Flight::route('GET /user/@name', function($name){ include 'views/profil.php?user='.$name; });
But it shows an error 500, how am I supposed to use it ?
Thank you
Nevermind, I found it myself
Flight::route('GET /user/@name', function($name){ $_GET['id'] = $name; include 'views/index.php'; });
Hello, I'm trying to redirect the user on his profile using:
/user/hisname
So I tried to use
Flight::route('GET /user/@name', function($name){ include 'views/profil.php?user='.$name; });
But it shows an error 500, how am I supposed to use it ?
Thank you