Example #1
0
 public function indexAction(Application $app)
 {
     return $app->render('DemoCompany/DemoProject:Admin/index.twig');
 }
Example #2
0
 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');
 }
Example #5
0
 public function random(Application $app)
 {
     $list = $app->oauth->retrieveRandom();
     $username = $app->oauth->getUsername();
     return $app->render('index.html.twig', ['list' => $list, 'username' => $username]);
 }
Example #6
0
 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')));
 }