質問編集履歴

2

修正

2016/07/25 15:37

投稿

yajin
yajin

スコア75

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  'order' => [
18
18
 
19
- 'Cards.id' => 'asc'
19
+ 'Articles.id' => 'asc'
20
20
 
21
21
  ]
22
22
 
@@ -48,7 +48,7 @@
48
48
 
49
49
  'order' => [
50
50
 
51
- 'Cards.id' => 'asc'
51
+ 'articles.id' => 'asc'
52
52
 
53
53
  ]
54
54
 
@@ -58,7 +58,7 @@
58
58
 
59
59
  $articles = $this->articless->find('all')->where(['user_id' => $user_id]);
60
60
 
61
- $this->set('cards', $this->paginate($cards));
61
+ $this->set('articles', $this->paginate($articles));
62
62
 
63
63
  }
64
64
 

1

加筆

2016/07/25 15:37

投稿

yajin
yajin

スコア75

test CHANGED
File without changes
test CHANGED
@@ -56,7 +56,9 @@
56
56
 
57
57
  ・・・・・・
58
58
 
59
- $articles = $this->articless->find('all')->where(['user_id' => $user_id]);
59
+ $articles = $this->articless->find('all')->where(['user_id' => $user_id]);
60
+
61
+ $this->set('cards', $this->paginate($cards));
60
62
 
61
63
  }
62
64