最新版 |
編集中の文章 |
行37: |
行37: |
| 全ブログの情報が配列で出力される | | 全ブログの情報が配列で出力される |
| | | |
− | <syntaxhighlight lang="php">
| |
− | array(3) {
| |
− | [0]=>
| |
− | array(23) {
| |
− | ["id"]=>
| |
− | string(1) "1"
| |
− | ["name"]=>
| |
− | string(4) "news"
| |
− | ["title"]=>
| |
− | string(12) "新着情報"
| |
− | ["description"]=>
| |
− | string(65) "baserCMS inc. [デモ] の最新の情報をお届けします。"
| |
− | ["layout"]=>
| |
− | string(7) "default"
| |
− | ["template"]=>
| |
− | string(7) "default"
| |
− | ["status"]=>
| |
− | bool(true)
| |
− | ["list_count"]=>
| |
− | string(2) "10"
| |
− | ["list_direction"]=>
| |
− | string(4) "DESC"
| |
− | ["feed_count"]=>
| |
− | string(2) "10"
| |
− | ["tag_use"]=>
| |
− | bool(true)
| |
− | ["comment_use"]=>
| |
− | string(1) "1"
| |
− | ["comment_approve"]=>
| |
− | string(1) "0"
| |
− | ["auth_captcha"]=>
| |
− | bool(true)
| |
− | ["widget_area"]=>
| |
− | string(1) "2"
| |
− | ["exclude_search"]=>
| |
− | bool(false)
| |
− | ["use_content"]=>
| |
− | bool(true)
| |
− | ["created"]=>
| |
− | string(19) "2016-02-02 21:01:37"
| |
− | ["modified"]=>
| |
− | NULL
| |
− | ["eye_catch_size_thumb_width"]=>
| |
− | string(3) "300"
| |
− | ["eye_catch_size_thumb_height"]=>
| |
− | string(3) "300"
| |
− | ["eye_catch_size_mobile_thumb_width"]=>
| |
− | string(3) "100"
| |
− | ["eye_catch_size_mobile_thumb_height"]=>
| |
− | string(3) "100"
| |
− | }
| |
− | [1]=>
| |
− | array(23) {
| |
− | ["id"]=>
| |
− | string(1) "2"
| |
− | ["name"]=>
| |
− | string(6) "course"
| |
− | ["title"]=>
| |
− | string(6) "講座"
| |
− | // (省略)
| |
− | }
| |
− | [2]=>
| |
− | array(23) {
| |
− | ["id"]=>
| |
− | string(1) "3"
| |
− | ["name"]=>
| |
− | string(10) "staff-blog"
| |
− | ["title"]=>
| |
− | string(21) "スタッフブログ"
| |
− | // (省略)
| |
− | }
| |
− | }
| |
− | </syntaxhighlight>
| |
| ### 応用 | | ### 応用 |
| ####コード | | ####コード |
行119: |
行46: |
| ####出力 | | ####出力 |
| news ブログの情報が配列出力される | | news ブログの情報が配列出力される |
− |
| |
− | <syntaxhighlight lang="php">
| |
− | array(3) {
| |
− | [0]=>
| |
− | array(23) {
| |
− | ["id"]=>
| |
− | string(1) "1"
| |
− | ["name"]=>
| |
− | string(4) "news"
| |
− | ["title"]=>
| |
− | string(12) "新着情報"
| |
− | ["description"]=>
| |
− | string(65) "baserCMS inc. [デモ] の最新の情報をお届けします。"
| |
− | ["layout"]=>
| |
− | string(7) "default"
| |
− | ["template"]=>
| |
− | string(7) "default"
| |
− | ["status"]=>
| |
− | bool(true)
| |
− | ["list_count"]=>
| |
− | string(2) "10"
| |
− | ["list_direction"]=>
| |
− | string(4) "DESC"
| |
− | ["feed_count"]=>
| |
− | string(2) "10"
| |
− | ["tag_use"]=>
| |
− | bool(true)
| |
− | ["comment_use"]=>
| |
− | string(1) "1"
| |
− | ["comment_approve"]=>
| |
− | string(1) "0"
| |
− | ["auth_captcha"]=>
| |
− | bool(true)
| |
− | ["widget_area"]=>
| |
− | string(1) "2"
| |
− | ["exclude_search"]=>
| |
− | bool(false)
| |
− | ["use_content"]=>
| |
− | bool(true)
| |
− | ["created"]=>
| |
− | string(19) "2016-02-02 21:01:37"
| |
− | ["modified"]=>
| |
− | NULL
| |
− | ["eye_catch_size_thumb_width"]=>
| |
− | string(3) "300"
| |
− | ["eye_catch_size_thumb_height"]=>
| |
− | string(3) "300"
| |
− | ["eye_catch_size_mobile_thumb_width"]=>
| |
− | string(3) "100"
| |
− | ["eye_catch_size_mobile_thumb_height"]=>
| |
− | string(3) "100"
| |
− | }
| |
− | }
| |
− | </syntaxhighlight>
| |
| | | |
| ## 注 | | ## 注 |