home » zplus/freepost.git
Author zPlus <--> 2016-11-29 00:34:23
Committer zPlus <--> 2016-11-29 00:34:23
Commit 6aace0c (patch)
Tree e11fa89
Parent(s)

search.php: add search controller


commits diff: 3a6f337..6aace0c
1 file changed, 3 insertions, 2 deletionsdownload


Diffstat
-rw-r--r-- search.php 5

Diff options
View
Side
Whitespace
Context lines
Inter-hunk lines
+3/-2 M   search.php
index 90a37da..16cef45
old size: 587B - new size: 657B
@@ -26,11 +26,12 @@ if (strlen ($query) == 0)
26 26 exit ();
27 27 }
28 28
29 -
29 + $search_results = $db->search ($query);
30 30
31 31 echo $twig->render (
32 32 'search.twig',
33 - array ('search_results' => []));
33 + ['query' => $query,
34 + 'search_results' => $search_results]);
34 35
35 36
36 37