質問編集履歴
3
コード訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -48,13 +48,13 @@
|
|
48
48
|
|
49
49
|
data: {
|
50
50
|
|
51
|
-
"a"
|
51
|
+
"a": a,
|
52
52
|
|
53
|
-
"b"
|
53
|
+
"b": b,
|
54
54
|
|
55
|
-
"point"
|
55
|
+
"point":point,
|
56
56
|
|
57
|
-
"checked" : checked,
|
57
|
+
"checked" : checked,
|
58
58
|
|
59
59
|
},
|
60
60
|
|
@@ -114,10 +114,6 @@
|
|
114
114
|
|
115
115
|
|
116
116
|
|
117
|
-
$this->Session->write('point', $point);//Sessionを試してみる
|
118
|
-
|
119
|
-
|
120
|
-
|
121
117
|
}
|
122
118
|
|
123
119
|
|
@@ -160,22 +156,6 @@
|
|
160
156
|
|
161
157
|
}
|
162
158
|
|
163
|
-
//Sessionを試してみる
|
164
|
-
|
165
|
-
if(SessionComponent::check('point')){
|
166
|
-
|
167
|
-
print_r($this->Session->read('point'));
|
168
|
-
|
169
|
-
$this->Session->delete('point');
|
170
|
-
|
171
|
-
}
|
172
|
-
|
173
|
-
else{
|
174
|
-
|
175
|
-
print_r("セッションに格納された値はありません!");
|
176
|
-
|
177
|
-
}
|
178
|
-
|
179
159
|
}
|
180
160
|
|
181
161
|
```
|
2
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -102,19 +102,19 @@
|
|
102
102
|
|
103
103
|
'conditions'=> array('Point.id' => $id),
|
104
104
|
|
105
|
-
'fields' => array('sum(point) as
|
105
|
+
'fields' => array('sum(point) as point'),
|
106
106
|
|
107
107
|
)
|
108
108
|
|
109
109
|
);
|
110
110
|
|
111
|
-
$
|
111
|
+
$point = $data['0']['0']['point'];
|
112
|
-
|
112
|
+
|
113
|
-
$this->set('
|
113
|
+
$this->set('point',$point);
|
114
|
-
|
115
|
-
|
116
|
-
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
-
$this->Session->write('
|
117
|
+
$this->Session->write('point', $point);//Sessionを試してみる
|
118
118
|
|
119
119
|
|
120
120
|
|
@@ -162,11 +162,11 @@
|
|
162
162
|
|
163
163
|
//Sessionを試してみる
|
164
164
|
|
165
|
-
if(SessionComponent::check('
|
165
|
+
if(SessionComponent::check('point')){
|
166
|
-
|
166
|
+
|
167
|
-
print_r($this->Session->read('
|
167
|
+
print_r($this->Session->read('point'));
|
168
|
-
|
168
|
+
|
169
|
-
$this->Session->delete('
|
169
|
+
$this->Session->delete('point');
|
170
170
|
|
171
171
|
}
|
172
172
|
|
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -100,9 +100,9 @@
|
|
100
100
|
|
101
101
|
array(
|
102
102
|
|
103
|
-
'conditions'=> array('Point.
|
103
|
+
'conditions'=> array('Point.id' => $id),
|
104
|
-
|
104
|
+
|
105
|
-
'fields' => array('sum(p
|
105
|
+
'fields' => array('sum(point) as sumPoints'),
|
106
106
|
|
107
107
|
)
|
108
108
|
|