forked from htmlacademy-php/1180999-yeticave-12
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-bets.php
27 lines (23 loc) · 880 Bytes
/
my-bets.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* Описание переменных
* @var mysqli $connection идентификатор соединения БД
* @var string $title заголовок страницы
*/
include_once __DIR__ . '/bootstrap.php';
$categories = get_categories($connection);
$bets = get_my_bets($connection, $_SESSION['user']['id']);
$main_menu = include_template('/menu/menu.php', ['categories' => $categories]);
$main_footer = include_template('footer.php', ['categories' => $categories, 'main_menu' => $main_menu]);
$main_page = include_template('my-bets.php', [
'bets' => $bets,
'connection' => $connection,
'categories' => $categories
]);
$layout_content = include_template('layout.php', [
'main_menu' => $main_menu,
'title' => $title . ' | Мои ставки',
'content' => $main_page,
'footer' => $main_footer
]);
print($layout_content);