{"id":128,"date":"2017-10-19T02:53:13","date_gmt":"2017-10-18T17:53:13","guid":{"rendered":"https:\/\/mz-kb.com\/blog\/?p=128"},"modified":"2017-10-28T23:22:32","modified_gmt":"2017-10-28T14:22:32","slug":"codeigniter-trans-nest","status":"publish","type":"post","link":"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/","title":{"rendered":"[PHP]CodeIgniter\u3067\u306eDB\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30cd\u30b9\u30c8\u5316\u306b\u3064\u3044\u3066"},"content":{"rendered":"<p>CodeIgniter\u3067\u306f\u3001DB\u3078\u306e\u767b\u9332\u30fb\u66f4\u65b0\u306a\u3069\u3092<code>$this-&gt;db-&gt;trans_start();<\/code>\u3068<code>$this-&gt;db-&gt;trans_complete();<\/code>\u3067\u56f2\u3080\u3053\u3068\u3067\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u5f35\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u306e\u6a5f\u80fd\u306f\u5185\u90e8\u3067\u30cd\u30b9\u30c8\u306e\u6df1\u3055\u3092\u30ab\u30a6\u30f3\u30bf\u3067\u8a18\u9332\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30cd\u30b9\u30c8\u5316\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059(CodeIgniter2, CodeIgniter3\u3067\u78ba\u8a8d)\u3002<\/p>\n<div class='code-block code-block-2' style='margin: 8px 0; clear: both;'>\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<ins class=\"adsbygoogle\"\n     style=\"display:block; text-align:center;\"\n     data-ad-layout=\"in-article\"\n     data-ad-format=\"fluid\"\n     data-ad-client=\"ca-pub-2968223517064128\"\n     data-ad-slot=\"7067331533\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/div>\n\n<h2>\u901a\u5e38\u306e\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u7528\u3044\u308b\u95a2\u6570\u4f8b<\/h2>\n<p>\u4f8b\u3048\u3070\u3001\u5358\u7d14\u306a\u9001\u91d1\u30b7\u30b9\u30c6\u30e0\u3092\u8a2d\u8a08\u3059\u308b\u969b\u3001Customer\u3068\u3044\u3046Model\u306b\u9001\u91d1\u5148\u3078\u6b8b\u9ad8\u3092\u79fb\u52d5\u3059\u308b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u95a2\u6570\u3092\u4f5c\u6210\u3059\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">public function execute_payment($source_id, $dest_id, $price) {\n    \/\/ \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u958b\u59cb\n    $this-&gt;db-&gt;trans_start();\n\n    \/\/ \u9001\u91d1\u5143\u304b\u3089\u6b8b\u9ad8\u3092\u5f15\u304f\n    $this-&gt;db-&gt;set('balance', 'balance-'.intval($price), false);\n    $this-&gt;db-&gt;where('id', $source_id);\n    $this-&gt;db-&gt;update('customers');\n\n    \/\/ \u9001\u91d1\u5148\u3078\u6b8b\u9ad8\u3092\u52a0\u7b97\n    $this-&gt;db-&gt;set('balance', 'balance+'.intval($price), false);\n    $this-&gt;db-&gt;where('id', $dest_id);\n    $this-&gt;db-&gt;update('customers');\n\n    \/\/ \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u7d42\u4e86\n    return $this-&gt;db-&gt;trans_complete();\n}<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u5f35\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u3001\u6b8b\u9ad8\u3092\u5f15\u304f\u51e6\u7406\u30fb\u52a0\u7b97\u3059\u308b\u51e6\u7406\u306e\u3044\u305a\u308c\u304b\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u5834\u5408\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u958b\u59cb\u6642\u306e\u72b6\u614b\u3078\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u7247\u65b9\u3060\u3051\u5b9f\u884c\u3055\u308c\u308b(\u6b8b\u9ad8\u304c\u5f15\u304b\u308c\u305f\u306e\u306b\u9001\u91d1\u3055\u308c\u3066\u3044\u306a\u3044)\u3068\u3044\u3046\u4e8b\u614b\u3092\u9632\u3050\u3053\u3068\u304c\u3067\u304d\u3001\u30c7\u30fc\u30bf\u306e\u6574\u5408\u6027\u304c\u4fdd\u305f\u308c\u307e\u3059\u3002<\/p>\n<h2>\u30cd\u30b9\u30c8\u5316\u3055\u308c\u305f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u4f8b<\/h2>\n<p>\u4e0a\u3067\u6319\u3052\u305f\u95a2\u6570\u3067\u306f<code>$this-&gt;db-&gt;trans_start();<\/code>\u3068<code>$this-&gt;db-&gt;trans_complete();<\/code>\u3092\u5229\u7528\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u3092\u542b\u3080\u95a2\u6570\u3092\u8907\u6570\u500b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u4e2d\u306b\u5165\u308c\u305f\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u3082\u3001\u7279\u306b\u6c17\u306b\u305b\u305a<code>$this-&gt;db-&gt;trans_start();<\/code>\u3068<code>$this-&gt;db-&gt;trans_complete();<\/code>\u3067\u56f2\u3081\u3070\u826f\u3044\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u3059\u306a\u308f\u3061\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">$this-&gt;db-&gt;trans_start();\n\n\/* \u4f55\u304b\u3057\u3089\u306eDB\u64cd\u4f5c\u2460 *\/\n\n$this-&gt;db-&gt;trans_start();\n\n\/* \u4f55\u304b\u3057\u3089\u306eDB\u64cd\u4f5c\u2461 *\/\n\n$this-&gt;db-&gt;trans_complete();\n\n\/* \u4f55\u304b\u3057\u3089\u306eDB\u64cd\u4f5c\u2462 *\/\n\n$this-&gt;db-&gt;trans_complete();<\/pre>\n<p>\u3053\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3057\u305f\u5834\u5408\u3067\u3082\u2460\uff5e\u2462\u3059\u3079\u3066\u306eDB\u64cd\u4f5c\u304c\u6b63\u5e38\u306b\u5b9f\u884c\u3055\u308c\u305f\u3068\u304d\u306e\u307fDB\u306e\u72b6\u614b\u304c\u66f4\u65b0\u3055\u308c\u307e\u3059\u3001\u3069\u308c\u304b1\u3064\u3067\u3082\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u305f\u5834\u5408\u306f\u2460\uff5e\u2462\u306e\u5909\u66f4\u306f\u3059\u3079\u3066\u30ed\u30fc\u30eb\u30d0\u30c3\u30af\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u8907\u6570\u500b\u306e\u9001\u91d1\u304c\u3042\u308b\u5834\u5408\u3067\u3082\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3051\u3070\u305d\u306e\u3059\u3079\u3066\u3067\u30a8\u30e9\u30fc\u304c\u8d77\u304d\u306a\u304b\u3063\u305f\u5834\u5408\u306e\u307fDB\u66f4\u65b0\u304c\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">\/\/ \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u958b\u59cb\n$this-&gt;db-&gt;trans_start();\n\n\/\/ \u8907\u6570\u4ef6\u306e\u9001\u91d1\u51e6\u7406\n$this-&gt;customer-&gt;execute_payment(1, 2, 100); \/\/ 1\u756a\u53e3\u5ea7\u304b\u30892\u756a\u53e3\u5ea7\u3078100\u5186\u79fb\u52d5\n$this-&gt;customer-&gt;execute_payment(1, 3, 100); \/\/ 1\u756a\u53e3\u5ea7\u304b\u30893\u756a\u53e3\u5ea7\u3078100\u5186\u79fb\u52d5\n$this-&gt;customer-&gt;execute_payment(1, 4, 100); \/\/ 1\u756a\u53e3\u5ea7\u304b\u30894\u756a\u53e3\u5ea7\u3078100\u5186\u79fb\u52d5\n\n\/\/ \u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u7d42\u4e86\n$this-&gt;db-&gt;trans_complete();<\/pre>\n<p>\u3053\u306e\u4f8b\u3067\u306f\u3001\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u5f35\u308b\u3053\u3068\u306b\u3088\u308a3\u4ef6\u306e\u9001\u91d1\u51e6\u7406\u304c\u5168\u4ef6\u6210\u529f\u3057\u305f\u5834\u5408\u306e\u307fDB\u304c\u66f4\u65b0\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001<code>$this-&gt;db-&gt;trans_start();<\/code>\u3068<code>$this-&gt;db-&gt;trans_complete();<\/code>\u306f\u5fc5\u305a\u3057\u3082DB\u64cd\u4f5c\u3092\u884c\u3046Model\u5185\u306b\u8a18\u8ff0\u3059\u308b\u5fc5\u8981\u306f\u306a\u304f\u3001\u5225\u9014Customer\u30e2\u30c7\u30eb\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u958b\u59cb\u30fb\u7d42\u4e86\u306e\u307f\u3092\u884c\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3059\u308b\u3068\u3044\u3063\u305f\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3060\u3057\u3001Controller\u5185\u3067<code>$this-&gt;db<\/code>\u3092\u5229\u7528\u3059\u308b\u969b\u306b\u306f\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066<code>$this-&gt;load-&gt;database();<\/code>\u3092\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u307e\u305f\u306f\u5404\u30e1\u30bd\u30c3\u30c9\u3067\u547c\u3073\u51fa\u3059\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CodeIgniter\u3067\u306f\u3001DB\u3078\u306e\u767b\u9332\u30fb\u66f4\u65b0\u306a\u3069\u3092$this-&gt;db-&gt;trans_start();\u3068$this-&gt;db-&gt;trans_complete();\u3067\u56f2\u3080\u3053\u3068\u3067\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u5f35\u308b\u3053 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[18,17],"class_list":["post-128","post","type-post","status-publish","format-standard","hentry","category-program","tag-codeigniter","tag-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[PHP]CodeIgniter\u3067\u306eDB\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30cd\u30b9\u30c8\u5316\u306b\u3064\u3044\u3066 - \u307e\u3055\u304b\u308d\u3050<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[PHP]CodeIgniter\u3067\u306eDB\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30cd\u30b9\u30c8\u5316\u306b\u3064\u3044\u3066 - \u307e\u3055\u304b\u308d\u3050\" \/>\n<meta property=\"og:description\" content=\"CodeIgniter\u3067\u306f\u3001DB\u3078\u306e\u767b\u9332\u30fb\u66f4\u65b0\u306a\u3069\u3092$this-&gt;db-&gt;trans_start();\u3068$this-&gt;db-&gt;trans_complete();\u3067\u56f2\u3080\u3053\u3068\u3067\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u5f35\u308b\u3053 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/\" \/>\n<meta property=\"og:site_name\" content=\"\u307e\u3055\u304b\u308d\u3050\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-18T17:53:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-10-28T14:22:32+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:label1\" content=\"\u306b\u3088\u3063\u3066\u66f8\u304b\u308c\u305f\" \/>\n\t<meta name=\"twitter:data1\" content=\"masaka_k\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u66f8\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mz-kb.com\/blog\/#website\",\"url\":\"https:\/\/mz-kb.com\/blog\/\",\"name\":\"\\u307e\\u3055\\u304b\\u308d\\u3050\",\"description\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30e0\\u306e\\u3053\\u3068\\u3001DTM\\u306e\\u3053\\u3068\\u3068\\u304b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mz-kb.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/#webpage\",\"url\":\"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/\",\"name\":\"[PHP]CodeIgniter\\u3067\\u306eDB\\u30c8\\u30e9\\u30f3\\u30b6\\u30af\\u30b7\\u30e7\\u30f3\\u306e\\u30cd\\u30b9\\u30c8\\u5316\\u306b\\u3064\\u3044\\u3066 - \\u307e\\u3055\\u304b\\u308d\\u3050\",\"isPartOf\":{\"@id\":\"https:\/\/mz-kb.com\/blog\/#website\"},\"datePublished\":\"2017-10-18T17:53:13+00:00\",\"dateModified\":\"2017-10-28T14:22:32+00:00\",\"author\":{\"@id\":\"https:\/\/mz-kb.com\/blog\/#\/schema\/person\/d8d66574f0d35fed1c24e8422ab2eabe\"},\"breadcrumb\":{\"@id\":\"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\/\/mz-kb.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[PHP]CodeIgniter\\u3067\\u306eDB\\u30c8\\u30e9\\u30f3\\u30b6\\u30af\\u30b7\\u30e7\\u30f3\\u306e\\u30cd\\u30b9\\u30c8\\u5316\\u306b\\u3064\\u3044\\u3066\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/mz-kb.com\/blog\/#\/schema\/person\/d8d66574f0d35fed1c24e8422ab2eabe\",\"name\":\"masaka_k\",\"url\":\"https:\/\/mz-kb.com\/blog\/author\/masaka_k\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[PHP]CodeIgniter\u3067\u306eDB\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30cd\u30b9\u30c8\u5316\u306b\u3064\u3044\u3066 - \u307e\u3055\u304b\u308d\u3050","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/","og_locale":"ja_JP","og_type":"article","og_title":"[PHP]CodeIgniter\u3067\u306eDB\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30cd\u30b9\u30c8\u5316\u306b\u3064\u3044\u3066 - \u307e\u3055\u304b\u308d\u3050","og_description":"CodeIgniter\u3067\u306f\u3001DB\u3078\u306e\u767b\u9332\u30fb\u66f4\u65b0\u306a\u3069\u3092$this-&gt;db-&gt;trans_start();\u3068$this-&gt;db-&gt;trans_complete();\u3067\u56f2\u3080\u3053\u3068\u3067\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3092\u5f35\u308b\u3053 [&hellip;]","og_url":"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/","og_site_name":"\u307e\u3055\u304b\u308d\u3050","article_published_time":"2017-10-18T17:53:13+00:00","article_modified_time":"2017-10-28T14:22:32+00:00","twitter_card":"summary","twitter_misc":{"\u306b\u3088\u3063\u3066\u66f8\u304b\u308c\u305f":"masaka_k","\u63a8\u5b9a\u8aad\u66f8\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/mz-kb.com\/blog\/#website","url":"https:\/\/mz-kb.com\/blog\/","name":"\u307e\u3055\u304b\u308d\u3050","description":"\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3053\u3068\u3001DTM\u306e\u3053\u3068\u3068\u304b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mz-kb.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/#webpage","url":"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/","name":"[PHP]CodeIgniter\u3067\u306eDB\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30cd\u30b9\u30c8\u5316\u306b\u3064\u3044\u3066 - \u307e\u3055\u304b\u308d\u3050","isPartOf":{"@id":"https:\/\/mz-kb.com\/blog\/#website"},"datePublished":"2017-10-18T17:53:13+00:00","dateModified":"2017-10-28T14:22:32+00:00","author":{"@id":"https:\/\/mz-kb.com\/blog\/#\/schema\/person\/d8d66574f0d35fed1c24e8422ab2eabe"},"breadcrumb":{"@id":"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mz-kb.com\/blog\/2017\/10\/19\/codeigniter-trans-nest\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/mz-kb.com\/blog\/"},{"@type":"ListItem","position":2,"name":"[PHP]CodeIgniter\u3067\u306eDB\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u306e\u30cd\u30b9\u30c8\u5316\u306b\u3064\u3044\u3066"}]},{"@type":"Person","@id":"https:\/\/mz-kb.com\/blog\/#\/schema\/person\/d8d66574f0d35fed1c24e8422ab2eabe","name":"masaka_k","url":"https:\/\/mz-kb.com\/blog\/author\/masaka_k\/"}]}},"_links":{"self":[{"href":"https:\/\/mz-kb.com\/blog\/wp-json\/wp\/v2\/posts\/128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mz-kb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mz-kb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mz-kb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mz-kb.com\/blog\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":13,"href":"https:\/\/mz-kb.com\/blog\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"predecessor-version":[{"id":139,"href":"https:\/\/mz-kb.com\/blog\/wp-json\/wp\/v2\/posts\/128\/revisions\/139"}],"wp:attachment":[{"href":"https:\/\/mz-kb.com\/blog\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mz-kb.com\/blog\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mz-kb.com\/blog\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}