<?php require_once __DIR__ . '/../common/autoload_cms.php'; require_once 'include/header.php'; $userCollection = new UserCollection(); $users = $userCollection->all(); ?> <div class="container"> <a href="user_add.php" class="btn btn-default">Add User</a> <br><br> <table class="table table-striped"> <tr> <th>Name</th> <th>Email</th> <th>Sex</th> <th>Age</th> <th>Action?</th> </tr> <?php foreach ($users as $user) { ?> <tr> <td><?php echo $user->getName(); ?> </td> <td><?php echo $user->getEmail(); ?>