/** * Панель администрирования * * @param App $app * @return \Symfony\Component\HttpFoundation\Response */ public function indexAction(App $app) { return $app->render('pages/admin.twig'); }
/** * Форма входа * * @param App $app * @param Request $request * @return \Symfony\Component\HttpFoundation\Response */ public function loginAction(App $app, Request $request) { return $app->render('pages/login.twig', array('error' => $app['security.last_error']($request), 'last_username' => $app['session']->get('_security.last_username'))); }