{"id":9929,"date":"2019-06-21T20:57:55","date_gmt":"2019-06-21T11:57:55","guid":{"rendered":"https:\/\/www.itblog.jp\/?p=9929"},"modified":"2019-06-21T21:10:15","modified_gmt":"2019-06-21T12:10:15","slug":"cakephp%e3%81%aeloadcomponent%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/www.itblog.jp\/?p=9929","title":{"rendered":"CakePHP\u306eLoadComponent\u306b\u3064\u3044\u3066"},"content":{"rendered":"\n<p>CakePHP\u306eLoadComponent\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3067\u3059\u3002<\/p>\n\n\n\n<p>LoadComponent\u30e1\u30bd\u30c3\u30c9\u306f\u3001Controller\u5185\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u3042\u3089\u304b\u3058\u3081CakePHP\u306e\u6e96\u5099\u3055\u308c\u3066\u3044\u308bComponent\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>Component\u3068\u306f\u3001\u6a5f\u80fd\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3001\u30e1\u30bd\u30c3\u30c9\u306e\u304b\u305f\u307e\u308a\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4e00\u822c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u8aad\u307f\u8fbc\u307f\u306e\u3088\u3046\u306a\u3082\u306e\u3068\u8003\u3048\u308c\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>Component\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3067\u4f7f\u7528\u3059\u308b\u5834\u5408\u306f\u3001initialize\u30e1\u30bd\u30c3\u30c9\u306e\u4e2d\u3067LoadComponent\u3092\u4f7f\u3063\u3066\u8a72\u5f53\u306eComponent\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u308bComponent\u306b\u306f\u4ee5\u4e0b\u306e\u7a2e\u985e\u304c\u3042\u308b\u306e\u3067\u3001\u8a73\u7d30\u306f\u4ee5\u4e0b\u306e\u305d\u308c\u305e\u308c\u306e\u8a18\u4e8b\u3092\u53c2\u7167\u3068\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/book.cakephp.org\/3.0\/ja\/controllers\/components\/authentication.html\">AuthComponent<\/a> (4.0.0\u3067\u64a4\u5ec3\u3002\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b\u3002)<\/li><li><a href=\"https:\/\/book.cakephp.org\/3.0\/ja\/controllers\/components\/cookie.html\">\u30af\u30c3\u30ad\u30fc<\/a> (3.5.0\u3067\u64a4\u5ec3\u3002ServerRequest\u3067\u5229\u7528\u3067\u304d\u308b)<\/li><li><a href=\"https:\/\/book.cakephp.org\/3.0\/ja\/controllers\/components\/csrf.html\">\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u30ea\u30af\u30a8\u30b9\u30c8\u30d5\u30a9\u30fc\u30b8\u30a7\u30ea<\/a> (3.5.0\u3067\u64a4\u5ec3\u3002\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306b\u7f6e\u304d\u63db\u3048\u3089\u308c\u308b)<\/li><li><a href=\"https:\/\/book.cakephp.org\/3.0\/ja\/controllers\/components\/flash.html\">\u30d5\u30e9\u30c3\u30b7\u30e5<\/a> <\/li><li><a href=\"https:\/\/book.cakephp.org\/3.0\/ja\/controllers\/components\/security.html\">\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<\/a> (FormHelper\u3092\u4f7f\u3046\u5fc5\u8981\u3042\u308a)<\/li><li><a href=\"https:\/\/book.cakephp.org\/3.0\/ja\/controllers\/components\/pagination.html\">\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3<\/a> <\/li><li><a href=\"https:\/\/book.cakephp.org\/3.0\/ja\/controllers\/components\/request-handling.html\">\u30ea\u30af\u30a8\u30b9\u30c8\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>CakePHP\u306eLoadComponent\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3067\u3059\u3002 LoadComponent\u30e1\u30bd\u30c3\u30c9\u306f\u3001Controller\u5185\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u3042\u3089\u304b\u3058\u3081CakePHP\u306e\u6e96\u5099\u3055\u308c\u3066\u3044\u308bComponent\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165,131],"tags":[],"class_list":["post-9929","post","type-post","status-publish","format-standard","hentry","category-cakephp","category-131"],"_links":{"self":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9929"}],"version-history":[{"count":1,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9929\/revisions"}],"predecessor-version":[{"id":9930,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=\/wp\/v2\/posts\/9929\/revisions\/9930"}],"wp:attachment":[{"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itblog.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}