1 | <?php |
||
3 | class ProfileController extends Controller |
||
4 | { |
||
5 | /** |
||
6 | * Construct this object by extending the basic Controller class |
||
7 | */ |
||
8 | public function __construct() |
||
12 | |||
13 | /** |
||
14 | * This method controls what happens when you move to /overview/index in your app. |
||
15 | * Shows a list of all users. |
||
16 | */ |
||
17 | public function index() |
||
23 | |||
24 | /** |
||
25 | * This method controls what happens when you move to /overview/showProfile in your app. |
||
26 | * Shows the (public) details of the selected user. |
||
27 | * @param $user_id int id the the user |
||
28 | */ |
||
29 | public function showProfile($user_id) |
||
39 | } |
||
40 |