<?php
if (!$user->isAuth()) {
redirect('/');
exit;
}
$all = $db->prepare('select * from `catBag` order by `id`');
$all -> execute();
echo $template->render('user.bag',
['all' => $all->fetchAll()]
);