<?phpif (!$user->isAuth() or $user->get()->role < 1) { redirect('/'); exit;} echo $template->render('admin.index');