質問するログイン新規登録

質問編集履歴

3

変数名間違えの修正

2016/02/18 08:26

投稿

star24star
star24star

スコア115

title CHANGED
File without changes
body CHANGED
@@ -16,7 +16,7 @@
16
16
  public function message_log()
17
17
  {
18
18
  // テーブル情報をすべて取得
19
- $test_table = $this->find('all');
19
+ $message_log = $this->find('all');
20
20
 
21
21
  // ここで出力したいデータの加工をする
22
22
  // 下記のやり方だと一番最後のレコードしか取得できない

2

混在文字の削除

2016/02/18 08:26

投稿

star24star
star24star

スコア115

title CHANGED
File without changes
body CHANGED
@@ -6,7 +6,8 @@
6
6
  [実行]
7
7
 
8
8
  ```PHP
9
+
9
- // chatテーブル情報
10
+ // テーブル情報
10
11
  protected static $_table_name = 'test_tab';
11
12
  protected static $_properties = [
12
13
  'id',

1

テーブル情報の追加

2016/02/18 04:47

投稿

star24star
star24star

スコア115

title CHANGED
File without changes
body CHANGED
@@ -6,7 +6,12 @@
6
6
  [実行]
7
7
 
8
8
  ```PHP
9
-
9
+ // chatテーブル情報
10
+ protected static $_table_name = 'test_tab';
11
+ protected static $_properties = [
12
+ 'id',
13
+ 'message'
14
+ ];
10
15
  public function message_log()
11
16
  {
12
17
  // テーブル情報をすべて取得