質問編集履歴
1
書式の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
###該当のソースコード
|
9
9
|
こちらが検索処理です。
|
10
|
-
|
10
|
+
```
|
11
11
|
public function searchAction($params)
|
12
12
|
{
|
13
13
|
|
@@ -28,8 +28,10 @@
|
|
28
28
|
$smarty->display(VIEW_DIR . '/account/search.php');
|
29
29
|
|
30
30
|
}
|
31
|
+
```
|
32
|
+
こちらがSQL文になります。
|
31
33
|
|
32
|
-
|
34
|
+
```
|
33
35
|
<?php
|
34
36
|
class UserRepository extends DbRepository
|
35
37
|
{
|
@@ -87,9 +89,10 @@
|
|
87
89
|
return $this->fetchAll($sql,array(':name' => $search_value,
|
88
90
|
':nick_name' => $search_value));
|
89
91
|
}
|
90
|
-
|
92
|
+
```
|
91
93
|
こちらがViewです。
|
92
94
|
|
95
|
+
```
|
93
96
|
{include file="`$smarty.const.VIEW_DIR`/layout.php"}
|
94
97
|
<title>検索 結果</title>
|
95
98
|
<div style="text-align:center" id="statuses">
|
@@ -117,6 +120,6 @@
|
|
117
120
|
</div>
|
118
121
|
{/foreach}
|
119
122
|
</div>
|
120
|
-
|
123
|
+
```
|
121
124
|
|
122
125
|
よろしくおねがいいたします。
|