{"id":1437,"date":"2021-03-30T16:30:24","date_gmt":"2021-03-30T07:30:24","guid":{"rendered":"https:\/\/tech.at-iroha.jp\/?p=1437"},"modified":"2021-04-19T13:17:12","modified_gmt":"2021-04-19T04:17:12","slug":"cakephp2-%e3%81%8b%e3%82%89-cakephp4-%e3%81%b8%e3%81%ae%e7%a7%bb%e8%a1%8c%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6-2","status":"publish","type":"post","link":"https:\/\/tech.at-iroha.jp\/?p=1437","title":{"rendered":"CakePHP2 \u304b\u3089 CakePHP4 \u3078\u306e\u79fb\u884c\u306b\u3064\u3044\u3066 (2)"},"content":{"rendered":"\n<p><a rel=\"noreferrer noopener\" href=\"\/?p=1290\" target=\"_blank\">\u524d\u56de<\/a>\u306f CakePHP2 \u304b\u3089 CakePHP4 \u306e\u79fb\u884c\u6e96\u5099\u3068\u3057\u3066\u3001Cakephp2 \u5074\u306e\u30bd\u30fc\u30b9\u306e\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3057\u305f\u3002\u3053\u306e\u6642\u70b9\u3067\u3060\u3044\u3076\u898b\u305f\u76ee\u306f CakePHP4 \u306e\u30b3\u30fc\u30c9\u306b\u8fd1\u3044\u72b6\u614b\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306f CakePHP2 \u306e\u30bd\u30fc\u30b9\u3092 CakePHP4 \u306e\u4ed5\u69d8\u306b\u5408\u308f\u305b\u3066\u4e00\u62ec\u5909\u63db\u3092\u884c\u3046\u30b3\u30f3\u30d0\u30fc\u30bf\u306e\u8003\u3048\u65b9\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"iroha-comment\">\u5c0f\u898f\u6a21\u304b\u3064CakePHP2\u7248\u306e\u30bd\u30fc\u30b9\u306e\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u306e\u7d99\u7d9a\u3092\u524d\u63d0\u3068\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u79fb\u884c\u5bfe\u8c61\u3068\u3057\u3066\u304a\u308a\u3001\u4ed6\u306e\u30b7\u30b9\u30c6\u30e0\u306e\u79fb\u884c\u306b\u5bfe\u3057\u3066\u53c2\u8003\u306b\u306a\u3089\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30d3\u30d8\u30a4\u30d3\u30a2\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3001\u30d8\u30eb\u30d1\u30fc\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3001\u30b7\u30a7\u30eb\u3001\u30c6\u30b9\u30c8\u306f\u79fb\u884c\u5bfe\u8c61\u3068\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u307e\u305f\u4f5c\u6210\u3057\u305f\u30b3\u30f3\u30d0\u30fc\u30bf\u306e\u30bd\u30fc\u30b9\u306f\u3001\u7279\u5b9a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u79fb\u884c\u3092\u76ee\u7684\u3068\u3057\u3066\u304a\u308a\u3001\u6c4e\u7528\u6027\u304c\u306a\u3044\u305f\u3081\u3001\u516c\u958b\u3044\u305f\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u4eca\u56de\u306e\u30b3\u30f3\u30d0\u30fc\u30bf\u306e\u4f5c\u6210\u306e\u76ee\u7684\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3084\u30b3\u30fc\u30c9\u5185\u306e\u6587\u5b57\u5217\u306e\u5358\u7d14\u306a\u5909\u66f4\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u3053\u3068\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u306e\u5909\u66f4<\/li><li>\u30d5\u30a1\u30a4\u30eb\u540d\uff08\u62e1\u5f35\u5b50\uff09\u306e\u5909\u66f4<\/li><li>\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u5206\u5272<\/li><li>\u30bd\u30fc\u30b9\u5185\u306e\u30e2\u30c7\u30eb\u540d\u3092\u5358\u6570\u5f62\u304b\u3089\u8907\u6570\u5f62\u306b\u5909\u63db<\/li><li>\u30bd\u30fc\u30b9\u5185\u306e\u6587\u5b57\u5217\u306e\u4e00\u62ec\u7f6e\u63db<\/li><\/ul>\n\n\n\n<p>\u307e\u305a CakePHP2 \u306e\u30bd\u30fc\u30b9\u3092 CakePHP4 \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u3001\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f\u306b\u5408\u308f\u305b\u3066\u5909\u63db\u3057\u3001\u305d\u306e\u5f8c\u30bd\u30fc\u30b9\u306e\u5185\u5bb9\u3092 CakePHP4 \u306b\u4ed5\u69d8\u306b\u5408\u308f\u305b\u3066\u5909\u63db\u3057\u307e\u3059\u3002\u30e2\u30c7\u30eb\u5468\u308a\u306e\u30bd\u30fc\u30b9\u306f\u69cb\u9020\u304c\u5927\u304d\u304f\u7570\u306a\u308b\u305f\u3081\u3001bake \u306b\u3066\u30b3\u30fc\u30c9\u3092\u518d\u4f5c\u6210\u3057\u3001\u500b\u5225\u306b\u79fb\u690d\u3059\u308b\u3053\u3068\u3068\u3057\u307e\u3059\u3002\u30b3\u30f3\u30d0\u30fc\u30bf\u306f\u3042\u304f\u307e\u3067\u306e\u624b\u4f5c\u696d\u3092\u6e1b\u3089\u3059\u305f\u3081\u306e\u3082\u306e\u3067\u3001\u5168\u3066\u306e\u30b3\u30fc\u30c9\u3092\u5909\u63db\u3059\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5168\u4f53\u306e\u30b3\u30fc\u30c9\u306e6\u5272\u3092\u81ea\u52d5\u5909\u63db\u3059\u308b\u3053\u3068\u3092\u76ee\u6a19\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u306e\u5909\u66f4<\/h2>\n\n\n\n<p>CakePHP4 \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u306f CakePHP2 \u306b\u6bd4\u3079\u3066\u3088\u308a\u7d30\u5206\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"720\" src=\"https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2021\/03\/image-1024x720.png\" alt=\"\" class=\"wp-image-1430\" srcset=\"https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2021\/03\/image-1024x720.png 1024w, https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2021\/03\/image-700x492.png 700w, https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2021\/03\/image-768x540.png 768w, https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2021\/03\/image.png 1379w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u30b3\u30f3\u30d0\u30fc\u30bf\u3067\u306f CakePHP2 \u306e\u30bd\u30fc\u30b9\u3092 CakePHP4 \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u306b\u5408\u308f\u305b\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4<\/h2>\n\n\n\n<p>CakePHP2 \u3067\u306f\u30e6\u30fc\u30b6\u5411\u3051\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u7528\u306e\u30af\u30e9\u30b9\u3068\u3001\u7ba1\u7406\u8005\u5411\u3051\u30a2\u30af\u30b7\u30e7\u30f3\u7528\u306e\u30af\u30e9\u30b9\u304c\u30e2\u30c7\u30eb\u5358\u4f4d\u3067\u4e00\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u306a\u3063\u3066\u304a\u308a\u3001admin_edit \u306e\u3088\u3046\u306b\u30e1\u30bd\u30c3\u30c9\u540d\u3067\u7ba1\u7406\u8005\u5411\u3051\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002CakePHP4 \u3067\u306f\u30e6\u30fc\u30b6\u5411\u3051\u3068\u7ba1\u7406\u8005\u5411\u3051\u306e\u30af\u30e9\u30b9\u306f\u5206\u96e2\u3055\u308c\u3001Admin \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002\u305d\u3053\u3067\u30b3\u30f3\u30d0\u30fc\u30bf\u3067\u306f CakePHP2 \u306e\u30bd\u30fc\u30b9\u3092\u30a2\u30af\u30b7\u30e7\u30f3\u5358\u4f4d\u3067\u5206\u5272\u3057\u3001admin \u306e\u3064\u3044\u3066\u3044\u306a\u3044\u30a2\u30af\u30b7\u30e7\u30f3\u30e1\u30bd\u30c3\u30c9\u306f\u30e6\u30fc\u30b6\u5411\u3051\u3068\u30af\u30e9\u30b9\u30d5\u30a1\u30a4\u30eb\u306b\u3001admin \u306e\u3064\u3044\u3066\u3044\u308b\u30a2\u30af\u30b7\u30e7\u30f3\u30e1\u30bd\u30c3\u30c9\u306f\u7ba1\u7406\u8005\u5411\u3051\u306e\u30af\u30e9\u30b9\u306b\u66f8\u304d\u8fbc\u307f\u914d\u7f6e\u3059\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>CakePHP2 \u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Controller\/UsersController.php<\/li><\/ul>\n\n\n\n<p>CakePHP4 \u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>src\/Controller\/UsersController.php (\u30e6\u30fc\u30b6\u5411\u3051\u30af\u30e9\u30b9)<\/li><li>src\/Controller\/Admin\/UsersController.php (\u7ba1\u7406\u8005\u5411\u3051\u30af\u30e9\u30b9)<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4<\/h2>\n\n\n\n<p>CakePHP2 \u3067\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u304c View \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u304c\u3001CakePHP4 \u3067\u306f\u30d3\u30e5\u30fc\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u306f\u30af\u30e9\u30b9\u306e\u307f\u304c\u914d\u7f6e\u3055\u308c\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306f templates \u306b\u914d\u7f6e\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3068\u540c\u69d8\u3001templates \u3082 \u30e6\u30fc\u30b6\u5411\u3051\u3068\u7ba1\u7406\u8005\u5411\u3051\u304c\u5206\u304b\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u305d\u308c\u305e\u308c\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002\u307e\u305f CakePHP2 \u3067\u306f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\u306f .ctp \u3092\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001CakePHP4 \u3067\u306f .php \u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u30b3\u30f3\u30d0\u30fc\u30bf\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc\u3068\u5408\u308f\u305b\u3066\u5168\u3066\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u62e1\u5f35\u5b50\u3092 .php \u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>CakePHP2<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>View\/Contents\/index.ctp<\/li><li>View\/Contents\/admin_index.ctp<\/li><\/ul>\n\n\n\n<p>CakePHP4<\/p>\n\n\n\n<ul class=\"wp-block-list\" id=\"block-81711819-1e38-47f6-adcb-12c6f72d904d\"><li>templates\/Contents\/index.php<\/li><li>templates\/Admin\/Contents\/index.php<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u30e2\u30c7\u30eb\u540d\u306e\u5909\u66f4<\/h2>\n\n\n\n<p>CakePHP2 \u3067\u306f\u30bd\u30fc\u30b9\u5185\u306e\u30e2\u30c7\u30eb\u540d\u304c\u3001User\u3001Content \u7b49\u3068\u5358\u6570\u5f62\u3068\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001CakePHP4 \u3067\u306f Users\u3001Contents \u3068\u8907\u6570\u5f62\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u305d\u3053\u3067\u30e2\u30c7\u30eb\u540d\u306e\u5bfe\u5fdc\u8868\u3092\u4f5c\u6210\u3057\u3001\u30bd\u30fc\u30b9\u5185\u306e\u30e2\u30c7\u30eb\u3092\u5358\u6570\u5f62\u304b\u3089\u8907\u6570\u5f62\u3078\u3068\u4e00\u62ec\u7f6e\u63db\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30e2\u30c7\u30eb\u540d\u306e\u5bfe\u5fdc\u8868\uff08TAB\u533a\u5207\u308a\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Content    Contents\nContent    Contents\nContent\tContents\nCourse\tCourses\nGroup\tGroups\nInfo\tInfos\nLog\tLogs\nRecord\tRecords\nSetting\tSettings\nUser\tUsers\nContentsQuestion\tContentsQuestions\nRecordsQuestion\tRecordsQuestions\nUsersCourse\tUsersCourses\nGroupsCourse\tGroupsCourses\nInfosGroup\tInfosGroups<\/code><\/pre>\n\n\n\n<p>\u7f6e\u63db\u524d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$this-&gt;User-&gt;xxx();\n$xxx&#91;'User']&#91;'xxx'];<\/code><\/pre>\n\n\n\n<p>\u7f6e\u63db\u5f8c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$this-&gt;Users-&gt;xxx();\n$xxx&#91;'Users']&#91;'xxx'];<\/code><\/pre>\n\n\n\n<p>\u30bd\u30fc\u30b9\u306e\u5185\u5bb9\u306b\u3082\u3088\u308a\u307e\u3059\u304c\u3001\u300c->Model->\u300d \u3092 \u300c->Models->\u300d \u3078\u3001\u300c&#8217;Model&#8217;\u300d\u3092\u300c&#8217;Models&#8217;\u300d\u3078\u7f6e\u63db\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u5927\u90e8\u5206\u304c\u5bfe\u5fdc\u3067\u304d\u308b\u306e\u3067\u306f\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6587\u5b57\u5217\u306e\u4e00\u62ec\u7f6e\u63db<\/h2>\n\n\n\n<p>CakePHP2 \u3068 CakePHP \u304c\u6a19\u6e96\u30af\u30e9\u30b9\u3084\u30e1\u30bd\u30c3\u30c9\u306e\u540d\u79f0\u5909\u66f4\u304c\u591a\u304f\u3042\u308a\u307e\u3059\u3002\u5358\u7d14\u306b\u7f6e\u304d\u63db\u3048\u308c\u308b\u3082\u306e\u3092\u5bfe\u5fdc\u8868\u306b\u3057\u3066\u3001\u305d\u308c\u3092\u5143\u306b\u6587\u5b57\u5217\u306e\u4e00\u62ec\u7f6e\u63db\u3092\u884c\u3044\u307e\u3059\u3002\u5bfe\u5fdc\u8868\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3068\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3001\u5225\u3005\u306b\u7528\u610f\u3057\u307e\u3057\u305f\u3002\u3053\u306e\u5bfe\u5fdc\u8868\u3092\u5145\u5b9f\u3055\u305b\u308b\u3053\u3068\u3067\u3001\u30b3\u30f3\u30d0\u30fc\u30bf\u306e\u7cbe\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30d5\u30a1\u30a4\u30eb\u306e\u7f6e\u63db\u6587\u5b57\u5217\u306e\u5bfe\u5fdc\u8868\uff08TAB\u533a\u5207\u308a\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function admin_\tfunction \nApp::uses('AppController', 'Controller');\tnamespace App\\Controller;\n-&gt;admin_\t-&gt;\n('admin_\t('\nfind('first'\tfind()-&gt;first()\nexists($question_id)\texists(&#91;'id' =&gt; $question_id)\nApp::uses('AppController', 'Controller');\tnamespace App\\Controller\\Admin;\nfind('count')\tfind()-&gt;count()\n'conditions' =&gt;\t-&gt;where(\nfunction admin_\tfunction \nApp::uses('AppController', 'Controller');\tnamespace App\\Controller;\n-&gt;admin_\t-&gt;\n('admin_\t('\nfind('first'\tfind()-&gt;first()\nexists($question_id)\texists(&#91;'id' =&gt; $question_id)\nApp::uses('AppController', 'Controller');\tnamespace App\\Controller\\Admin;\nfind('count')\tfind()-&gt;count()\n'conditions' =&gt;\t-&gt;where(\n'order' =&gt;\t-&gt;order(\n'limit' =&gt;\t-&gt;limit(\n$this-&gt;layout = '';\t$this-&gt;viewBuilder()-&gt;disableAutoLayout();\nadmin_record\trecord\nadmin_edit\tedit\n(Exception\t(\\Exception\nbeforeFilter()\tbeforeFilter(\\Cake\\Event\\EventInterface $event)\nkind']\tkind\nstatus']\tstatus\ncreated']\tcreated\nmodified']\tmodified\nid']\tid\ntitle']\ttitle\nname']\tname\nscore']\tscore\nsec']\tsec\nunderstanding']\tunderstanding\npassword']\tpassword\nurl']\turl\nbody']\tbody<\/code><\/pre>\n\n\n\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u7f6e\u63db\u6587\u5b57\u5217\u306e\u5bfe\u5fdc\u8868\uff08TAB\u533a\u5207\u308a\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$this-&gt;Html-&gt;addCrumb\t$this-&gt;Breadcrumbs-&gt;add\n$this-&gt;Html-&gt;getCrumbs(' \/ ');\t$this-&gt;Breadcrumbs-&gt;render(&#91;'class' =&gt; 'ib-breadcrumbs'], &#91;'separator' =&gt; ' \/ ']);\nFULL_BASE_URL\tRouter::fullBaseUrl()\n$this-&gt;Form-&gt;input\t$this-&gt;Form-&gt;control\n$loginedUser&#91;'id']\t$this-&gt;readAuthUser('id'\n$loginedUser&#91;'role']\t$this-&gt;readAuthUser('role'\n$loginedUser&#91;'name']\t$this-&gt;readAuthUser('name'\ndata&#91;Content]&#91;kind]\tkind\nContentBody\tbody\n, 'class'=&gt;'form-control']\t]\nkind']\tkind\nstatus']\tstatus\ncreated']\tcreated\nmodified']\tmodified\nid']\tid\ntitle']\ttitle\nname']\tname\nscore']\tscore\nsec']\tsec\nunderstanding']\tunderstanding\npassword']\tpassword\n<\/code><\/pre>\n\n\n\n<p>\u4f55\u5ea6\u3082\u7e70\u308a\u8fd4\u3057\u5bfe\u5fdc\u8868\u3092\u4fee\u6b63\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u30b3\u30f3\u30d0\u30fc\u30c8\u5b9f\u884c\u6642\u306b\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306b\u5f35\u308a\u4ed8\u3051\u308b\u3060\u3051\u3067\u3001\u5909\u66f4\u304c\u53ef\u80fd\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"802\" height=\"487\" src=\"https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2021\/03\/image-1.png\" alt=\"\" class=\"wp-image-1432\" srcset=\"https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2021\/03\/image-1.png 802w, https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2021\/03\/image-1-700x425.png 700w, https:\/\/tech.at-iroha.jp\/wp-content\/uploads\/2021\/03\/image-1-768x466.png 768w\" sizes=\"auto, (max-width: 802px) 100vw, 802px\" \/><\/figure>\n\n\n\n<p>CakePHP2 \u3068 CakePHP4 \u306f\u5225\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u8a00\u3063\u3066\u3044\u3044\u3050\u3089\u3044\u7834\u58ca\u7684\u306a\u5909\u66f4\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u4e00\u767a\u3067\u30b3\u30f3\u30d0\u30fc\u30c8\u3067\u304d\u308b\u3088\u3046\u306a\u9280\u306e\u5f3e\u4e38\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3057\u304b\u3057\u306a\u304c\u3089\u79fb\u884c\u306e\u65b9\u91dd\u3092\u6c7a\u3081\u3001\u30d5\u30a1\u30a4\u30eb\u540d\u3084\u6587\u5b57\u5217\u306e\u5358\u7d14\u306a\u5909\u66f4\u3092\u81ea\u52d5\u5316\u3059\u308b\u3053\u3068\u3067\u3001\u30b9\u30af\u30e9\u30c3\u30c1\u3067\u30ea\u30e9\u30a4\u30c8\u3059\u308b\u3088\u308a\u3082\u3042\u308b\u7a0b\u5ea6\u5de5\u6570\u3092\u524a\u6e1b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u601d\u308f\u308c\u307e\u3059\u3002\u307e\u305f\u3059\u3050\u306b\u79fb\u884c\u3057\u306a\u304f\u3066\u3082\u3001\u79fb\u884c\u3092\u898b\u636e\u3048\u3066\u3001\u65e2\u5b58\u306e\u30b3\u30fc\u30c9\u306e\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3092\u884c\u3046\u3053\u3068\u306f\u3001\u5c06\u6765\u3001\u79fb\u884c\u306e\u5fc5\u8981\u6027\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306e\u30ea\u30b9\u30af\u306e\u8efd\u6e1b\u306b\u3082\u3064\u306a\u304c\u308b\u3082\u306e\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u56de\u306f\u8a8d\u8a3c\u5468\u308a\u306e\u79fb\u884c\u306b\u3064\u3044\u3066\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u306f CakePHP2 \u304b\u3089 CakePHP4 \u306e\u79fb\u884c\u6e96\u5099\u3068\u3057\u3066\u3001Cakephp2 \u5074\u306e\u30bd\u30fc\u30b9\u306e\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u306b\u3064\u3044\u3066\u66f8\u304d\u307e\u3057\u305f\u3002\u3053\u306e\u6642\u70b9\u3067\u3060\u3044\u3076\u898b\u305f\u76ee\u306f CakePHP4 \u306e\u30b3\u30fc\u30c9\u306b\u8fd1\u3044\u72b6\u614b\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306f  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1432,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,19],"tags":[],"class_list":["post-1437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cakephp","category-oss"],"_links":{"self":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts\/1437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1437"}],"version-history":[{"count":7,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts\/1437\/revisions"}],"predecessor-version":[{"id":1483,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/posts\/1437\/revisions\/1483"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=\/wp\/v2\/media\/1432"}],"wp:attachment":[{"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.at-iroha.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}