Browse Source

Merge pull request #2136 from sanjoydesk/master

Fixed fortune view : added content type and fortune url in benchmark config
Nate 9 years ago
parent
commit
34b8844e4c

+ 1 - 0
frameworks/PHP/cygnite-php-framework/apps/controllers/BenchController.php

@@ -67,6 +67,7 @@ class BenchController extends AbstractBaseController
                 return -1;
             }
         });
+		header('Content-Type: text/html; charset=utf-8');
         $this->render('fortunes', array(
                 'fortunes' => $fortunes
         ));

+ 5 - 2
frameworks/PHP/cygnite-php-framework/apps/views/bench/fortunes.view.php

@@ -1,6 +1,9 @@
 <!DOCTYPE html>
 <html>
-<head><title>Fortunes</title></head>
+<head>
+    <title>Fortunes</title>
+</head>
+
 <body>
 <table>
     <tr>
@@ -17,4 +20,4 @@
 
 </table>
 </body>
-</html>
+</html>

+ 1 - 0
frameworks/PHP/cygnite-php-framework/benchmark_config.json

@@ -24,6 +24,7 @@
       "setup_file": "setup",
       "db_url": "/index.php/bench/db",
       "query_url": "/index.php/bench/queries/",
+      "fortune_url": "/index.php/bench/fortunes",
       "port": 8080,
       "approach": "Realistic",
       "classification": "Fullstack",