Exemplo n.º 1
0
 public function show(Application $app)
 {
     $name = 'Dashboard';
     // TWIG version
     //return $app->render('dashboard.html.twig', array('name'=>$name));
     // PHP ONLY VERSION
     return $app->render('dashboard.html.php', array('title' => $name));
 }
Exemplo n.º 2
0
 public function grid(Request $request, Application $app)
 {
     /** @var WorkdayGridService $gridService */
     /*
     $gridService = $app['workdayGrid'];
     $gridService->setSelectedDate($this->getSelectedDate());
     $result = $gridService->processRequest($request);
     
     $retStr = json_encode($result);
     return json_encode($result);
     */
     return $app->json([['id' => "1", 'logtime' => "1h", 'description' => 'Analiza kode', 'taskcode' => "LJGENSUDEV-123"], ['id' => "2", 'logtime' => "3h 15m", 'description' => 'Programiranje kontrol na formi.', 'taskcode' => "LJGENSUDEV-123"], ['id' => "3", 'logtime' => "2h 30m", 'description' => 'Testiranje v razvoju', 'taskcode' => "LJGENSUDEV-123"]]);
 }
Exemplo n.º 3
0
 public function getData(Application $app)
 {
     return $app->json([['lastName' => 'Frank', 'name' => 'Al', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com/extra_long_address_to_see_how_columns_will_react_to_large_content.', 'gender' => 'male', 'rating' => 4, 'src' => 'images/person1.gif'], ['lastName' => 'Friese', 'name' => 'Andy', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 2, 'src' => 'images/person1.gif'], ['lastName' => 'Mann', 'name' => 'Anita', 'checked' => false, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 3, 'src' => 'images/person1.gif'], ['lastName' => 'Schutt', 'name' => 'Doris', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 4, 'src' => 'images/person1.gif'], ['lastName' => 'Open', 'name' => 'Doris', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 2, 'src' => 'images/person1.gif'], ['lastName' => 'Dewit', 'name' => 'Kenya', 'checked' => false, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 3, 'src' => 'images/person1.gif'], ['lastName' => 'Zar', 'name' => 'Lou', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 1, 'src' => 'images/person1.gif'], ['lastName' => 'Burr', 'name' => 'Tim', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 2, 'src' => 'images/person1.gif'], ['lastName' => 'Hughes', 'name' => 'Tish', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 5, 'src' => 'images/person1.gif'], ['lastName' => 'Lester', 'name' => 'Mo', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 3, 'src' => 'images/person1.gif'], ['lastName' => 'Case', 'name' => 'Justin', 'checked' => false, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 3, 'src' => 'images/person1.gif'], ['lastName' => 'Time', 'name' => 'Justin', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 4, 'src' => 'images/person1.gif'], ['lastName' => 'Barr', 'name' => 'Gaye', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 2, 'src' => 'images/person1.gif'], ['lastName' => 'Poole', 'name' => 'Gene', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 1, 'src' => 'images/person1.gif'], ['lastName' => 'Ander', 'name' => 'Corey', 'checked' => false, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 5, 'src' => 'images/person1.gif'], ['lastName' => 'Early', 'name' => 'Brighton', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 3, 'src' => 'images/person1.gif'], ['lastName' => 'Noring', 'name' => 'Constance', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 4, 'src' => 'images/person1.gif'], ['lastName' => 'Haas', 'name' => 'Jack', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 2, 'src' => 'images/person1.gif'], ['lastName' => 'Tress', 'name' => 'Matt', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 4, 'src' => 'images/person1.gif'], ['lastName' => 'Turner', 'name' => 'Paige', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 3, 'src' => 'images/person1.gif'], ['lastName' => 'Frank1', 'name' => 'Al', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com/extra_long_address_to_see_how_columns_will_react_to_large_content.', 'gender' => 'male', 'rating' => 4, 'src' => 'images/person1.gif'], ['lastName' => 'Friese1', 'name' => 'Andy', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 2, 'src' => 'images/person1.gif'], ['lastName' => 'Mann1', 'name' => 'Anita', 'checked' => false, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 3, 'src' => 'images/person1.gif'], ['lastName' => 'Schutt1', 'name' => 'Doris', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 4, 'src' => 'images/person1.gif'], ['lastName' => 'Open1', 'name' => 'Doris', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 2, 'src' => 'images/person1.gif'], ['lastName' => 'Dewit1', 'name' => 'Kenya', 'checked' => false, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 3, 'src' => 'images/person1.gif'], ['lastName' => 'Zar1', 'name' => 'Lou', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 1, 'src' => 'images/person1.gif'], ['lastName' => 'Burr1', 'name' => 'Tim', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 2, 'src' => 'images/person1.gif'], ['lastName' => 'Hughes1', 'name' => 'Tish', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 5, 'src' => 'images/person1.gif'], ['lastName' => 'Lester1', 'name' => 'Mo', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 3, 'src' => 'images/person1.gif'], ['lastName' => 'Case1', 'name' => 'Justin', 'checked' => false, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 3, 'src' => 'images/person1.gif'], ['lastName' => 'Time1', 'name' => 'Justin', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 4, 'src' => 'images/person1.gif'], ['lastName' => 'Barr1', 'name' => 'Gaye', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 2, 'src' => 'images/person1.gif'], ['lastName' => 'Poole1', 'name' => 'Gene', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 1, 'src' => 'images/person1.gif'], ['lastName' => 'Ander1', 'name' => 'Corey', 'checked' => false, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 5, 'src' => 'images/person1.gif'], ['lastName' => 'Early1', 'name' => 'Brighton', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 3, 'src' => 'images/person1.gif'], ['lastName' => 'Noring1', 'name' => 'Constance', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 4, 'src' => 'images/person1.gif'], ['lastName' => 'Haas1', 'name' => 'Jack', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 2, 'src' => 'images/person1.gif'], ['lastName' => 'Tress1', 'name' => 'Matt', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'male', 'rating' => 4, 'src' => 'images/person1.gif'], ['lastName' => 'Turner1', 'name' => 'Paige', 'checked' => true, 'linkText' => 'www.sap.com', 'href' => 'http://www.sap.com', 'gender' => 'female', 'rating' => 3, 'src' => 'images/person1.gif']]);
 }
Exemplo n.º 4
0
 public function show(Application $app, Request $request)
 {
     $name = 'This page is not implemented. Yet.';
     return $app->render('notimplemented.html.php', array('name' => $name));
 }