public function indexAction(Application $app) { return $app->render('DemoCompany/DemoProject:Admin/index.twig'); }
public function sidebarAction(Application $app, Request $reqeust) { return ''; return $app->render('project.twig', $data, $response); }
/** * Test index action * * @author Ronan Chilvers <*****@*****.**> */ public function testAction(Application $app) { return $app->render('test.html.twig'); }
public function homepage(Request $request, Application $app) { return $app->render('homepage.html.twig'); }
public function random(Application $app) { $list = $app->oauth->retrieveRandom(); $username = $app->oauth->getUsername(); return $app->render('index.html.twig', ['list' => $list, 'username' => $username]); }
public function loginAction(Application $app, Request $request) { $app->d('这是演示登录页面。'); return $app->render('login.twig', array('error' => $app->trans($app['security.last_error']($request)), 'last_username' => $app['session']->get('_security.last_username'))); }