@@ -20,13 +20,13 @@ discard block |
||
20 | 20 | ?> |
21 | 21 | <h1>Question</h1> |
22 | 22 | <!-- <?php echo $questInfo->id ?><br> --> |
23 | -<?php echo "<div class=question> <b>Subject</b> ".$questInfo->subject ?> |
|
24 | -<?php echo "<b>Question</b> ".$questInfo->question ?> |
|
25 | -<?php echo "<a href='..\commentq/$questInfo->id'>+ Comment</a></div>";?><br><br> |
|
23 | +<?php echo "<div class=question> <b>Subject</b> " . $questInfo->subject ?> |
|
24 | +<?php echo "<b>Question</b> " . $questInfo->question ?> |
|
25 | +<?php echo "<a href='..\commentq/$questInfo->id'>+ Comment</a></div>"; ?><br><br> |
|
26 | 26 | <?php |
27 | 27 | foreach ($itemz["itemz2"] as $itema) { |
28 | 28 | if ($itema->id_question == $questInfo->id && $itema->id_answer == "question") { |
29 | - echo "<div class=answer><b>Komment</b> ".$itema->comment."</div>"; |
|
29 | + echo "<div class=answer><b>Komment</b> " . $itema->comment . "</div>"; |
|
30 | 30 | echo "<br>"; |
31 | 31 | } |
32 | 32 | } |
@@ -42,13 +42,13 @@ discard block |
||
42 | 42 | <h1>Answers</h1> |
43 | 43 | <?php |
44 | 44 | foreach ($itemz["itemz1"] as $itemx) { |
45 | - echo "<b><h3>Answer</b></h3><div class=question> ".$itemx->answer; |
|
45 | + echo "<b><h3>Answer</b></h3><div class=question> " . $itemx->answer; |
|
46 | 46 | echo "<a href='..\comment/{$itemx->id}'>+ Comment</a></div>"; |
47 | 47 | echo "<br>"; |
48 | 48 | |
49 | 49 | foreach ($itemz["itemz2"] as $itema) { |
50 | 50 | if ($itemx->id_question == $itema->id_question && $itemx->id == $itema->id_answer) { |
51 | - echo "<div class=answer><b>Komment</b> ".$itema->comment."</div>"; |
|
51 | + echo "<div class=answer><b>Komment</b> " . $itema->comment . "</div>"; |
|
52 | 52 | } |
53 | 53 | } |
54 | 54 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | "view" => [ |
8 | 8 | "active" => false, |
9 | 9 | "shared" => true, |
10 | - "callback" => function () { |
|
10 | + "callback" => function() { |
|
11 | 11 | $view = new \Anax\View\ViewCollection(); |
12 | 12 | $view->setDI($this); |
13 | 13 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "services" => [ |
9 | 9 | "page" => [ |
10 | 10 | "shared" => true, |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $page = new \Anax\Page\Page(); |
13 | 13 | $page->setDI($this); |
14 | 14 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "services" => [ |
9 | 9 | "configuration" => [ |
10 | 10 | "shared" => true, |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $config = new \Anax\Configure\Configuration(); |
13 | 13 | $dirs = require ANAX_INSTALL_PATH . "/config/configuration.php"; |
14 | 14 | $config->setBaseDirectories($dirs); |
@@ -7,7 +7,7 @@ |
||
7 | 7 | "services" => [ |
8 | 8 | "request" => [ |
9 | 9 | "shared" => true, |
10 | - "callback" => function () { |
|
10 | + "callback" => function() { |
|
11 | 11 | $obj = new \Anax\Request\Request(); |
12 | 12 | $obj->init(); |
13 | 13 | return $obj; |
@@ -7,7 +7,7 @@ |
||
7 | 7 | "services" => [ |
8 | 8 | "dbqb" => [ |
9 | 9 | "shared" => true, |
10 | - "callback" => function () { |
|
10 | + "callback" => function() { |
|
11 | 11 | $db = new \Anax\DatabaseQueryBuilder\DatabaseQueryBuilder(); |
12 | 12 | |
13 | 13 | // Load the configuration files |
@@ -6,7 +6,7 @@ |
||
6 | 6 | "services" => [ |
7 | 7 | "router" => [ |
8 | 8 | "shared" => true, |
9 | - "callback" => function () { |
|
9 | + "callback" => function() { |
|
10 | 10 | $router = new \Anax\Route\Router(); |
11 | 11 | $router->setDI($this); |
12 | 12 |
@@ -8,7 +8,7 @@ |
||
8 | 8 | "services" => [ |
9 | 9 | "cache" => [ |
10 | 10 | "shared" => true, |
11 | - "callback" => function () { |
|
11 | + "callback" => function() { |
|
12 | 12 | $cache = new \Anax\Cache\FileCache(); |
13 | 13 | |
14 | 14 | // Load the configuration files |
@@ -7,7 +7,7 @@ |
||
7 | 7 | "services" => [ |
8 | 8 | "db" => [ |
9 | 9 | "shared" => true, |
10 | - "callback" => function () { |
|
10 | + "callback" => function() { |
|
11 | 11 | $db = new \Anax\Database\Database(); |
12 | 12 | |
13 | 13 | // Load the configuration files |