{"id":2,"date":"2009-04-03T17:14:06","date_gmt":"2009-04-03T08:14:06","guid":{"rendered":"https:\/\/memo.cute.bz\/cakephp\/?p=2"},"modified":"2009-08-06T09:12:39","modified_gmt":"2009-08-06T00:12:39","slug":"%e3%82%a2%e3%83%97%e3%83%aa%e3%82%b1%e3%83%bc%e3%82%b7%e3%83%a7%e3%83%b3%e6%8b%a1%e5%bc%b5","status":"publish","type":"post","link":"https:\/\/memo.cute.bz\/cakephp\/?p=2","title":{"rendered":"\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u62e1\u5f35"},"content":{"rendered":"<p>CakePHP \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u306b\u307b\u307c\u5171\u901a\u3067\u767a\u751f\u3059\u308b\u4f5c\u696d\u3002<br \/>\n\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u72ec\u81ea\u306e\u5171\u901a\u3059\u308b\u62e1\u5f35\u3092\u66f8\u304f\u3068\u3053\u308d\u3092\u7528\u610f\u3059\u308b\u3002<\/p>\n<h3>\u53c2\u7167<\/h3>\n<p><a href=\"http:\/\/book.cakephp.org\/ja\/view\/18\/%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AE%E6%8B%A1%E5%BC%B5\" class=\"note\">\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u62e1\u5f35 :: CakePHP\u306e\u69cb\u9020 :: CakePHP\u306e\u57fa\u672c\u539f\u5247 :: \u30de\u30cb\u30e5\u30a2\u30eb :: 1.2 Collection :: The Cookbook<\/a><\/p>\n<p><!--more--><\/p>\n<h3>\/app\/app_controller.php \u306e\u8a2d\u7f6e<\/h3>\n<p>\u30a2\u30d7\u30ea\u72ec\u81ea\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u5171\u901a\u306e\u62e1\u5f35\u3092\u66f8\u304f\u3002<br \/>\n\u7279\u306b\u5171\u901a\u306e\u30b3\u30fc\u30eb\u30d0\u30c3\u30af\u306f\u3053\u3053\u306b\u66f8\u3044\u3066\u3044\u308b\u3002<\/p>\n<blockquote cite=\"http:\/\/book.cakephp.org\/ja\/view\/15\/%E3%82%B3%E3%83%B3%E3%83%88%E3%83%AD%E3%83%BC%E3%83%A9%E3%81%AE%E6%8B%A1%E5%BC%B5\" title=\"\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u62e1\u5f35 :: CakePHP\u306e\u69cb\u9020 :: CakePHP\u306e\u57fa\u672c\u539f\u5247 :: \u30de\u30cb\u30e5\u30a2\u30eb :: 1.2 Collection :: The Cookbook\">\n<ul>\n<li>beforeFilter()\u3001\u3059\u3079\u3066\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30ed\u30b8\u30c3\u30af\u306e\u5b9f\u884c\u524d\u306b\u547c\u3070\u308c\u307e\u3059\u3002<\/li>\n<li>beforeRender()\u3001\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30ed\u30b8\u30c3\u30af\u306e\u5b9f\u884c\u5f8c\u3001\u3057\u304b\u3057\u30d3\u30e5\u30fc\u306e\u8868\u793a(render)\u524d\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/li>\n<li>afterFilter()\u3001\u3059\u3079\u3066\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30ed\u30b8\u30c3\u30af\u3092\u5b9f\u884c\u3057\u3001\u30d3\u30e5\u30fc\u306e\u8868\u793a(render)\u304c\u7d42\u308f\u3063\u305f\u5f8c\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u624b\u52d5\u3067render()\u3092\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u304b\u3089\u547c\u3073\u3001\u305d\u306e\u5f8c\u306b\u30ed\u30b8\u30c3\u30af\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u306e\u3067\u306a\u3044\u9650\u308a\u3001afterRender\u3068afterFilter\u306b\u306f\u9055\u3044\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/li>\n<\/ul>\n<p><a href=\"http:\/\/book.cakephp.org\/ja\/view\/15\/%E3%82%B3%E3%83%B3%E3%83%88%E3%83%AD%E3%83%BC%E3%83%A9%E3%81%AE%E6%8B%A1%E5%BC%B5\">\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306e\u62e1\u5f35 :: CakePHP\u306e\u69cb\u9020 :: CakePHP\u306e\u57fa\u672c\u539f\u5247 :: \u30de\u30cb\u30e5\u30a2\u30eb :: 1.2 Collection :: The Cookbook<\/a><\/p><\/blockquote>\n<p>\u203b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3082\u62e1\u5f35\u3067\u304d\u308b\u306e\u3067\u4f7f\u3044\u5206\u3051\u306b\u6ce8\u610f\u3002<\/p>\n<h4>\u521d\u671f\u30bd\u30fc\u30b9<\/h4>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nconfig('app');\r\nclass AppController extends Controller\r\n{\r\n    function beforeRender() {\r\n        parent::beforeFilter();\r\n    }\r\n}\r\n<\/pre>\n<h3>\/app\/app_model.php \u306e\u8a2d\u7f6e<\/h3>\n<p>\u30a2\u30d7\u30ea\u72ec\u81ea\u306e\u30e2\u30c7\u30eb\u5171\u901a\u306e\u62e1\u5f35\u3092\u66f8\u304f\u3002<br \/>\n\u5171\u901a\u306e Validation \u306f\u3053\u3053\u306b\u66f8\u3044\u3066\u3044\u308b\u3002\u203b\u672c\u6765\u5225\u306e\u5834\u6240\u306b\u66f8\u304f\u3079\u304d\uff1f<\/p>\n<blockquote cite=\"http:\/\/book.cakephp.org\/ja\/view\/17\/%E3%83%A2%E3%83%87%E3%83%AB%E3%81%AE%E6%8B%A1%E5%BC%B5\" title=\"\u30e2\u30c7\u30eb\u306e\u62e1\u5f35 :: CakePHP\u306e\u69cb\u9020 :: CakePHP\u306e\u57fa\u672c\u539f\u5247 :: \u30de\u30cb\u30e5\u30a2\u30eb :: 1.2 Collection :: The Cookbook\">\n<ul>\n<li>beforeFind()<\/li>\n<li>afterFind()<\/li>\n<li>beforeValidate()<\/li>\n<li>beforeSave()<\/li>\n<li>afterSave()<\/li>\n<li>beforeDelete()<\/li>\n<li>afterDelete()<\/li>\n<\/ul>\n<p><a href=\"http:\/\/book.cakephp.org\/ja\/view\/17\/%E3%83%A2%E3%83%87%E3%83%AB%E3%81%AE%E6%8B%A1%E5%BC%B5\">\u30e2\u30c7\u30eb\u306e\u62e1\u5f35 :: CakePHP\u306e\u69cb\u9020 :: CakePHP\u306e\u57fa\u672c\u539f\u5247 :: \u30de\u30cb\u30e5\u30a2\u30eb :: 1.2 Collection :: The Cookbook<\/a>\n<\/p><\/blockquote>\n<h4>\u521d\u671f\u30bd\u30fc\u30b9<\/h4>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nclass AppModel extends Model {\r\n}\r\n<\/pre>\n<h3>\/app\/app_helper.php \u306e\u8a2d\u7f6e<\/h3>\n<p>\u30a2\u30d7\u30ea\u72ec\u81ea\u306e\u30d8\u30eb\u30d1\u30fc\u5171\u901a\u306e\u62e1\u5f35\u3092\u66f8\u304f\u3002<br \/>\n\u203b\u307e\u3060\u4f7f\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CakePHP \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u306b\u307b\u307c\u5171\u901a\u3067\u767a\u751f\u3059\u308b\u4f5c\u696d\u3002 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u72ec\u81ea\u306e\u5171\u901a\u3059\u308b\u62e1\u5f35\u3092\u66f8\u304f\u3068\u3053\u308d\u3092\u7528\u610f\u3059\u308b\u3002 \u53c2\u7167 \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u62e1\u5f35 :: CakePHP\u306e\u69cb\u9020 :: CakePHP\u306e\u57fa\u672c\u539f\u5247 ::  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/memo.cute.bz\/cakephp\/index.php?rest_route=\/wp\/v2\/posts\/2","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/memo.cute.bz\/cakephp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/memo.cute.bz\/cakephp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/memo.cute.bz\/cakephp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/memo.cute.bz\/cakephp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2"}],"version-history":[{"count":0,"href":"https:\/\/memo.cute.bz\/cakephp\/index.php?rest_route=\/wp\/v2\/posts\/2\/revisions"}],"wp:attachment":[{"href":"https:\/\/memo.cute.bz\/cakephp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/memo.cute.bz\/cakephp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/memo.cute.bz\/cakephp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}