回答編集履歴
2
補足
test
CHANGED
@@ -41,3 +41,7 @@
|
|
41
41
|
}
|
42
42
|
|
43
43
|
```
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
indexアクションに初回アクセスしたときは、open_windowセッションがないので、検索結果画面は開かない
|
1
訂正
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
$this->Session->write('open_window',true);
|
16
16
|
|
17
|
-
$this->redirect(['controller' => 'Search', 'action' => 'index']);
|
17
|
+
return $this->redirect(['controller' => 'Search', 'action' => 'index']);
|
18
18
|
|
19
19
|
}
|
20
20
|
|
@@ -36,7 +36,7 @@
|
|
36
36
|
|
37
37
|
$this->set(compact('open_window'));
|
38
38
|
|
39
|
-
$this->Session->delete('open_window');
|
39
|
+
$this->Session->delete('open_window'); // セッションは削除しておく
|
40
40
|
|
41
41
|
}
|
42
42
|
|