{"id":8340,"date":"2020-02-06T10:00:25","date_gmt":"2020-02-06T01:00:25","guid":{"rendered":"https:\/\/www.gigas-jp.com\/appnews\/?p=8340"},"modified":"2020-02-07T10:04:58","modified_gmt":"2020-02-07T01:04:58","slug":"cakephp-%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e3%82%af%e3%83%a9%e3%82%b9%e3%81%a8%e3%82%a8%e3%83%b3%e3%83%86%e3%82%a3%e3%83%86%e3%82%a3%e3%82%af%e3%83%a9%e3%82%b9%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6","status":"publish","type":"post","link":"https:\/\/www.gigas-jp.com\/appnews\/archives\/8340","title":{"rendered":"CakePHP \u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u3068\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066(\u305d\u306e1)"},"content":{"rendered":"\n<p>\u4eca\u56de\u306fCakePHP\u306e\u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u3068\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066\u306e\u8aac\u660e\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u672c\u8a18\u4e8b\u306fCakePHP\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306e\u63a5\u7d9a\u304c\u5b8c\u4e86\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u524d\u63d0\u3068\u306a\u308a\u307e\u3059\u3002\u8a73\u3057\u304f\u306f\u524d\u56de\u306e\u8a18\u4e8b\u300c<a href=\"\/appnews\/archives\/8314\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"CakePHP \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306e\u63a5\u7d9a (\u65b0\u3057\u3044\u30bf\u30d6\u3067\u958b\u304f)\">CakePHP \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u306e\u63a5\u7d9a<\/a>\u300d\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>CakePHP\u3067\u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u3068\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u306e\u4f5c\u6210\u3092\u304a\u3053\u306a\u3046\u306b\u3042\u305f\u308a\u3001\u4e0b\u8a18\u306e\u547d\u540d\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30fb\u30c6\u30fc\u30d6\u30eb\u540d\u306f\u8907\u6570\u5f62<br>\n\u30fb\u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u306f\u30c6\u30fc\u30d6\u30eb\u540d+Table\u3092\u3064\u3051\u308b<br>\n\u30fb\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u306f\u30c6\u30fc\u30d6\u30eb\u540d\u306e\u5358\u6570\u5f62<\/p>\n\n\n\n<p>CakePHP\u3068\u9023\u643a\u3057\u3066\u3044\u308b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3001\u751f\u5f92\u60c5\u5831\u3092\u4fdd\u5b58\u3059\u308b\u300cstudents\u300d\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u308b\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE `students` (\n  `id` int(11) NOT NULL AUTO_INCREMENT,\n  `name` varchar(100) NOT NULL,\n  `mail` varchar(100) NOT NULL,\n  PRIMARY KEY (`id`)\n)<\/code><\/pre>\n\n\n\n<p>\u4e0a\u8a18\u306estudents\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u5fdc\u3059\u308b\u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u3068\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u306e<br> \u4f5c\u6210\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h4>\u25a0\u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u306e\u4f5c\u6210<\/h4>\n\n\n\n<p>\u30c6\u30fc\u30d6\u30eb\u540d\u304c\u300cstudents\u300d\u306a\u306e\u3067\u3001\u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u306e\u540d\u79f0\u306f\u300cStudentsTable.php\u300d\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br> \u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u306f\u4ee5\u4e0b\u306e\u968e\u5c64\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br> C:\\xampp\\htdocs\\caketest\\src\\Model\\Table\\StudentsTable.php<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nnamespace App\\Model\\Table;\nuse Cake\\ORM\\Table;\n\nclass StudentsTable extends Table{\n    \n}<\/code><\/pre>\n\n\n\n<h4>\u25a0\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u306e\u4f5c\u6210<\/h4>\n\n\n\n<p>\u30c6\u30fc\u30d6\u30eb\u540d\u304c\u300cstudents\u300d\u306a\u306e\u3067\u3001\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u30af\u30e9\u30b9\u306e\u540d\u79f0\u306f\u300cStudent.php\u300d\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br> \u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u30af\u30e9\u30b9\u306f\u4ee5\u4e0b\u306e\u968e\u5c64\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<br> C:\\xampp\\htdocs\\caketest\\src\\Model\\Entity\\Student.php<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php\nnamespace App\\Model\\Entity;\nuse Cake\\ORM\\Entity;\n\nclass Student extends Entity{\n    \n}<\/code><\/pre>\n\n\n\n<p>\u73fe\u72b6\u3067\u306f\u3001\u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u304a\u3088\u3073\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u306e\u4e2d\u306b\u306f\u51e6\u7406\u306f\u3072\u3068\u3064\u3082\u306a\u3044\u72b6\u614b\u3067\u3059\u304c\u3001\u3053\u306e\u72b6\u614b\u3067\u57fa\u672c\u52d5\u4f5c\u306e\u78ba\u8a8d\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u56de\u306f\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u30af\u30e9\u30b9\u304b\u3089\u3001\u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u304a\u3088\u3073\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u306b\u30a2\u30af\u30bb\u30b9\u3092\u304a\u3053\u306a\u3044\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u308b\u30ec\u30b3\u30fc\u30c9\u5185\u5bb9\u3092\u30d3\u30e5\u30fc\u306b\u8868\u793a\u3059\u308b\u65b9\u6cd5\u306e\u8aac\u660e\u3092\u304a\u3053\u306a\u3044\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6728\u66dc\u65e5\u62c5\u5f53\uff1anishida<\/p>\n<div class='wp_social_bookmarking_light'>\n            <div class=\"wsbl_google_plus_one\"><g:plusone size=\"medium\" annotation=\"none\" href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/8340\" ><\/g:plusone><\/div>\n            <div class=\"wsbl_hatena_button\"><a href=\"\/\/b.hatena.ne.jp\/entry\/https:\/\/www.gigas-jp.com\/appnews\/archives\/8340\" class=\"hatena-bookmark-button\" data-hatena-bookmark-title=\"CakePHP \u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u3068\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066(\u305d\u306e1)\" data-hatena-bookmark-layout=\"standard\" title=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\"> <img src=\"\/\/b.hatena.ne.jp\/images\/entry-button\/button-only@2x.png\" alt=\"\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0\" width=\"20\" height=\"20\" style=\"border: none;\" \/><\/a><script type=\"text\/javascript\" src=\"\/\/b.hatena.ne.jp\/js\/bookmark_button.js\" charset=\"utf-8\" async=\"async\"><\/script><\/div>\n            <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/8340\" data-text=\"CakePHP \u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u3068\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066(\u305d\u306e1)\" data-via=\"GIGASJAPAN_APPS\" data-lang=\"ja\">Tweet<\/a><\/div>\n            <div class=\"wsbl_facebook_like\"><div id=\"fb-root\"><\/div><fb:like href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/8340\" layout=\"button_count\" action=\"like\" width=\"100\" share=\"false\" show_faces=\"false\" ><\/fb:like><\/div>\n            <div class=\"wsbl_facebook_send\"><div id=\"fb-root\"><\/div><fb:send href=\"https:\/\/www.gigas-jp.com\/appnews\/archives\/8340\" colorscheme=\"light\" ><\/fb:send><\/div>\n    <\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306fCakePHP\u306e\u30c6\u30fc\u30d6\u30eb\u30af\u30e9\u30b9\u3068\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30af\u30e9\u30b9\u306b\u3064\u3044\u3066\u306e\u8aac\u660e\u3092\u304a\u3053\u306a\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[100],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/8340"}],"collection":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/comments?post=8340"}],"version-history":[{"count":8,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/8340\/revisions"}],"predecessor-version":[{"id":8352,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/posts\/8340\/revisions\/8352"}],"wp:attachment":[{"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/media?parent=8340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/categories?post=8340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gigas-jp.com\/appnews\/wp-json\/wp\/v2\/tags?post=8340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}