{"id":5345,"date":"2014-01-29T09:11:58","date_gmt":"2014-01-29T00:11:58","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=5345"},"modified":"2014-01-28T15:12:48","modified_gmt":"2014-01-28T06:12:48","slug":"cakephp%e3%81%a8wpf%e3%81%ae%e7%9b%b8%e4%ba%92%e9%81%8b%e7%94%a8-cake-bake-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6-mvc-%e3%82%92%e8%87%aa%e5%8b%95%e7%94%9f%e6%88%90%e3%81%99%e3%82%8b-2","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/5345","title":{"rendered":"CakePHP\u3068WPF\u306e\u76f8\u4e92\u904b\u7528 cake bake \u3092\u4f7f\u3063\u3066 MVC \u3092\u81ea\u52d5\u751f\u6210\u3059\u308b"},"content":{"rendered":"<p>\n\u6700\u521d\u306b CakePHP \u306e cake bake all \u3092\u4f7f\u3063\u3066 Model\/View\/Controller \u3092\u4e00\u6c17\u306b\u4f5c\u6210\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u79fb\u884c\u3059\u308b\u5834\u5408\u3001CakePHP \u306e\u8907\u6570\u5f62\u3063\u3066\u306e\u306b\u3072\u3063\u304b\u304b\u308a\u307e\u3059\u3002\n<\/p>\n<p><a href='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/01\/wpid-dworkblogimage20140128_01org1.jpg'><img border='0' src='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/01\/wpid-dworkblogimage20140128_01thum1.jpg'\/><\/a><\/p>\n<p>\n\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u4e0a\u306b store \u3068\u3044\u3046\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u3063\u3066\u3001\u3053\u308c\u306b\u5bfe\u5fdc\u3059\u308b MVC \u3092\u4f5c\u308d\u3046\u3068\u3059\u308b\u3068\u3001\u3053\u3093\u306a\u98a8\u306b Model.php \u5185\u3067\u30a8\u30e9\u30fc\u304c\u3067\u307e\u3059\u3002CakePHP \u306e\u30c6\u30fc\u30d6\u30eb\u540d\u306e\u30eb\u30fc\u30eb\u3068\u3057\u3066\u8907\u6570\u5f62\u306b\u3059\u308b\u308f\u3051\u3067\u3001\u672c\u6765\u306a\u3089\u3070\u300cstores\u300d\u3092\u63a2\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u30c6\u30fc\u30d6\u30eb\u304c\u3042\u308a\u307e\u305b\u3093\u3001\u3063\u3066\u306a\u5177\u5408\u3067\u3059\u306d\u3002\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nError: Table stores for model Store was not found in datasource default.\n#0 C:xampphtdocscakephp-2.4.5libCakeModelModel.php(3498): Model-&gt;setSource(&#039;stores&#039;)\n#1 C:xampphtdocscakephp-2.4.5libCakeModelModel.php(1355): Model-&gt;getDataSource()\n#2 C:xampphtdocscakephp-2.4.5libCakeConsoleCommandTaskModelTask.php(503): Model-&gt;schema(true)\n#3 C:xampphtdocscakephp-2.4.5libCakeConsoleCommandTaskModelTask.php(801): ModelTask-&gt;doAssociations(Object(Model))\n#4 C:xampphtdocscakephp-2.4.5libCakeConsoleCommandBakeShell.php(174): ModelTask-&gt;bake(Object(Model), false)\n#5 C:xampphtdocscakephp-2.4.5libCakeConsoleShell.php(431): BakeShell-&gt;all()\n#6 C:xampphtdocscakephp-2.4.5libCakeConsoleShellDispatcher.php(207): Shell-&gt;runCommand(&#039;all&#039;, Array)\n#7 C:xampphtdocscakephp-2.4.5libCakeConsoleShellDispatcher.php(66): ShellDispatcher-&gt;dispatch()\n#8 C:xampphtdocscakephp-2.4.5appConsolecake.php(36): ShellDispatcher::run(Array)\n#9 {main}\n<\/pre>\n<p>\nModel \u540d\u306f\u300cStore\u300d\u306a\u3093\u3060\u304b\u3089\u3001\u306a\u3093\u3068\u304b store \u30c6\u30fc\u30d6\u30eb\u3082\u898b\u3064\u3051\u3066\u304f\u308c\u308c\u3070\u4fbf\u5229\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3046\u3093\u3067\u3059\u304c\u3001\u3053\u308c\u3067\u7d50\u69cb\u60a9\u307f\u307e\u3059\u3002<br \/>\n\u3067\u3001\u30c6\u30fc\u30d6\u30eb\u540d\u3092\u5909\u3048\u3089\u308c\u308b\u3001\u3042\u308b\u3044\u306f\u65b0\u3057\u3044\u30b7\u30b9\u30c6\u30e0\u306e\u5834\u5408\u306f\u3044\u3044\u3093\u3067\u3059\u304c\u3001\u65e2\u5b58\u306e\u30b7\u30b9\u30c6\u30e0\u304c\u3042\u3063\u305f\u308a\u3001\u305d\u308c\u306a\u308a\u306e\u547d\u540d\u898f\u7d04\u304c\u3042\u305f\u308a\u3059\u308b\u3068\u5909\u66f4\u306f\u96e3\u3057\u3044\u306e\u3067\u3059\u3002\u306a\u306e\u3067\u3001\u30c6\u30fc\u30d6\u30eb\u540d\u306f\u305d\u306e\u307e\u307e\u300cstore\u300d\u306e\u307e\u307e\u3067\u4f7f\u3044\u305f\u3044\u3067\u3059\u306d\u3002\n<\/p>\n<p>\n\u25a0\u30c6\u30fc\u30d6\u30eb\u540d\u306b\u5358\u6570\u540d\u3092\u4f7f\u3046\n<\/p>\n<p>\n\u305d\u3046\u3044\u3046\u5834\u5408\u306f\u3001\u3042\u3089\u304b\u3058\u3081\u3001$useTable \u306b store \u3092\u6307\u5b9a\u3057\u305f Model \u3092\u4f5c\u3063\u3066\u304a\u304d\u307e\u3059\u3002\u305d\u3046\u3084\u3063\u3066\u3001\n<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\nApp::uses(&#039;AppModel&#039;, &#039;Model&#039;);\n\/**\n * Store Model\n *\n *\/\nclass Store extends AppModel {\n\n\/**\n * Use table\n *\n * @var mixed False or table name\n *\/\n\tpublic $useTable = &#039;store&#039;;\n}\n&amp;#91;\/code&amp;#93;\n&lt;p&gt;\n\u305d\u306e\u3042\u3068\u306b\u3001\n&lt;\/p&gt;\n&lt;ol&gt;\n&lt;li&gt;cake bake Model \u3067 Store \u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u3092\u4f5c\u308a\u76f4\u3059\uff08\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3068\u304b\uff09&lt;\/li&gt;\n&lt;li&gt;cake bake all \u3067 Store \u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3059\u308b MVC \u3092\u4f5c\u308b&lt;\/li&gt;\n&lt;\/ol&gt;\n&lt;p&gt;\n\u3068\u3044\u3046\u624b\u9806\u3092\u8e0f\u307f\u307e\u3059\u3002\u3053\u3046\u3059\u308b\u3068\u3001Store \u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u304c\u3001\u300cstore\u300d\u30c6\u30fc\u30d6\u30eb\u3092\u5bfe\u8c61\u306b\u3059\u308b\u3068\u3044\u3046\u8907\u6570\u5f62\u306a\u3057\u306e\u65b9\u6cd5\u3067\u4f5c\u308c\u307e\u3059...\u304c\u3001\u3053\u308c\u3063\u3066\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u307d\u3061\u307d\u3061 y\/n \u3092\u6c7a\u3081\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u3001\u3082\u3063\u3068\u3044\u3044\u65b9\u6cd5\u304c\u306a\u3044\u3082\u306e\u304b\u3068\u601d\u3063\u3001\n&lt;\/p&gt;\n&#x5B;code]\n&gt; cake bake Model Store\n&gt; cake bake all Store\n<\/pre>\n<p>\n\u306e2\u30b3\u30de\u30f3\u30c9\u3067\u4e00\u6c17\u306b\u3067\u304d\u307e\u3059\u306d\u3002\u4f55\u6545\u304b cake bake Model Store \u306e\u307b\u3046\u306f\u8907\u6570\u7cfb\u3092\u63a2\u3055\u305a\u306b\u5358\u6570\u7cfb\u306e\u307e\u307e\u306a\u306e\u3067\u3001\u4e00\u6c17\u306b\u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u3042\u3068\u3001bake all Store \u3067\u30e2\u30c7\u30eb\u540d\uff08\u30c6\u30fc\u30d6\u30eb\u540d\uff1f\uff09\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u3053\u308c\u307e\u305f PHPUnit \u3067 y \u3092\u62bc\u3059\u3060\u3051\u3067\u3001\u4e00\u6c17\u306b\u4f5c\u308c\u307e\u3059\u3002<br \/>\n\u306a\u306e\u3067\u3001\u300cy\u300d\u3060\u3051\u66f8\u304b\u308c\u305f\u5fdc\u7b54\u30d5\u30a1\u30a4\u30eb\u3060\u3051\u4f5c\u3063\u3066\u304a\u3044\u3066\u6b21\u306e\u3088\u3046\u306a\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u3067\u52d5\u304b\u305b\u3070\u5927\u4e08\u592b\u3067\u3059\u306d\u3002\n<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncmd \/c cake bake Model Store\ncmd \/c bake all Store &lt; yes.txt\n&amp;#91;\/code&amp;#93;\n&lt;p&gt;\n\u30c6\u30fc\u30d6\u30eb\u5168\u4f53\u306f\u9069\u5f53\u306aperl\u304bPHP\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u3084\u308c\u3070OK\u3067\u3059\u3002\n\u305d\u3046\u3057\u3066\u4f5c\u6210\u3057\u3066\u3084\u308b\u3068\u3001\u3072\u3068\u307e\u305a1\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u5bfe\u3057\u3066 CRUD \u304c\u3067\u304d\u308b MVC \u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\n&lt;\/p&gt;\n&lt;a href=&#039;http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/01\/wpid-dworkblogimage20140128_02org1.jpg&#039;&gt;&lt;img border=&#039;0&#039; src=&#039;http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/01\/wpid-dworkblogimage20140128_02thum1.jpg&#039;\/&gt;&lt;\/a&gt;\n&lt;p&gt;\n\u3053\u306e\u4f8b\u3067\u306f\u3001starttime \u3068\u3044\u3046\u30c6\u30fc\u30d6\u30eb\u306b http:\/\/localhost:81\/cakephp-2.4.5\/Starttimes \u3067\u30a2\u30af\u30bb\u30b9\u3092\u3057\u307e\u3059\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u81ea\u4f53\u306f\u8907\u6570\u5f62\u3067\u751f\u6210\u3055\u308c\u308b\u306e\u3067\u3001\u5143\u30c6\u30fc\u30d6\u30eb\u540d\u3068\u82e5\u5e72\u305a\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3059\u304c\u3001\u307e\u3042\u826f\u3057\u3068\u3057\u307e\u3057\u3087\u3046\u3002\nPerson \u30c6\u30fc\u30d6\u30eb\u304c People \u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u304b\u3001\u8ff7\u3046\u70b9\u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3002\n&lt;\/p&gt;\n&lt;p&gt;\n\u25a0\u30c6\u30fc\u30d6\u30eb\u306e\u5916\u90e8\u7d50\u5408\u3092\u6307\u5b9a\u3059\u308b\n&lt;\/p&gt;\n&lt;p&gt;\n\u3042\u3089\u304b\u3058\u3081\u3001\u30c6\u30fc\u30d6\u30eb\u306e\u5916\u90e8\u7d50\u5408\u3092\u3057\u3066\u304a\u3051\u3070 CakePHP \u304c\u62fe\u3063\u3066\u304f\u308c\u308b\uff1f\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001\u65e2\u5b58\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u306f\u5916\u90e8\u7d50\u5408\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u307e\u3042\u3001\u305d\u306e\u307e\u307e\u4f7f\u3046\u306e\u3082\u3088\u3044\u306e\u3067\u3059\u304c\u3001\u305b\u3063\u304b\u304f\u81ea\u52d5\u751f\u6210\u3055\u308c\u305f View \u3067 ID \u306e\u7f85\u5217\u304c\u3042\u308b\u306e\u306f\u30c7\u30d0\u30c3\u30b0\u4e0a\u9762\u5012\u304f\u3055\u3044\u3067\u3059\u3002$belongsTo \u3092\u4f7f\u3046\u3068 Model \u306b\u5916\u90e8\u7d50\u5408\u3092\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\n&lt;\/p&gt;\n&lt;p&gt;\nModel \u30af\u30e9\u30b9\u306b\u4e0b\u8a18\u306a\u98a8\u306b\u30a2\u30bd\u30b7\u30a8\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\n\u30a2\u30bd\u30b7\u30a8\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u306f\u3001$belongsTo\uff08\u591a\u5bfe1\uff09\u3060\u3051\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002\u30c7\u30fc\u30bf\u4e0a\u3001\u89aa\u304b\u3089\u305d\u306e\u5b50\u3092\u691c\u7d22\u3059\u308b\u3068\u3044\u3046\u306e\u304c\u306a\u304f\u3066\u3001\u5b50\u30c6\u30fc\u30d6\u30eb\u304b\u3089\u89aa\u306e\u540d\u524d\u304c\u983b\u7e41\u306b\u767a\u751f\u3059\u308b\u304b\u3089\u3067\u3059\u3002\u3053\u306e\u3042\u305f\u308a\u306f\u3001\u30b7\u30b9\u30c6\u30e0\u306e\u7279\u6027\u306b\u5408\u308f\u305b\u3066\u3067\u3059\u306d\u3002\n&lt;\/p&gt;\n&#x5B;code lang=&quot;php&quot;]\nclass Store extends AppModel {\n\tpublic $belongsTo = array(\n\t    &#039;Areagroup&#039; =&gt; array(\n\t        &#039;className&#039;    =&gt; &#039;Areagroup&#039;,\n\t        &#039;foreignKey&#039;   =&gt; &#039;AreaGroupID&#039;\n\t    ),\n\t    &#039;Sellingcompany&#039; =&gt; array(\n\t        &#039;className&#039;    =&gt; &#039;Sellingcompany&#039;,\n\t        &#039;foreignKey&#039;   =&gt; &#039;SellingCompanyID&#039;\n\t    )\n\t);\n<\/pre>\n<p>\n\u3053\u306e\u4f8b\u3067\u306f\u3001Store\u30c6\u30fc\u30d6\u30eb\u304c\u3001Areagroup\u30c6\u30fc\u30d6\u30eb\u3068Sellingcompany\u30c6\u30fc\u30d6\u30eb\u306b\u5916\u90e8\u7d50\u5408\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u8a2d\u5b9a\u3067\u3059\u3002\u5b50\u3067\u3042\u308bStore\uff08\u304a\u5e97\uff09\u304c\u3001Areagroup\uff08\u5730\u57df\uff09\u3084Sellingcompany\uff08\u4f1a\u793e\uff09\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u30b9\u30bf\u30a4\u30eb\u304c\u76f4\u89b3\u7684\u306b\u66f8\u3051\u307e\u3059\u3002\u3042\u3068\u306f\u3044\u308d\u3044\u308d\u8abf\u3079\u305f\u306e\u3067\u3059\u304c\u3001\u3042\u307e\u308a\u5fc5\u8981\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u3002\u5fc5\u8981\u3067\u3042\u308c\u3070\u9069\u5b9c\u30af\u30a8\u30ea\u3092\u66f8\u3044\u3066\u53d6\u3063\u3066\u304d\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u3068\u3044\u3046\u306e\u3082\u3001\u89aa\u304b\u3089\u5b50\u3092\u63a2\u3059\u6642\u306b\u305f\u3044\u3066\u3044\u306f\u691c\u7d22\u6761\u4ef6\u3092\u5165\u308c\u308b\u306e\u3067\u3001\u5358\u7d14\u306a $hasMany \u3067\u306f\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u306e\u3067\u3059\u3002\u9069\u5207\u306a\u8a2d\u5b9a\u3092\u3057\u305f\u308a\u9069\u5207\u306a\u30e2\u30c7\u30eb\u3092\u4f5c\u3063\u3066\u3082\u3088\u3044\u3067\u3059\u304c\u3001\u305d\u3046\u306a\u308b\u3068\u7279\u5b9a\u306e\u691c\u7d22\u6761\u4ef6\u3054\u3068\u306b\u30e2\u30c7\u30eb\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u30e2\u30c7\u30eb\u30af\u30e9\u30b9\u81ea\u4f53\u304c\u6c3e\u6feb\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u306a\u306e\u3067\u3001\u666e\u901a\u306b ER \u56f3\u306b\u3067\u304d\u308b\u7bc4\u56f2\u3067\u3088\u3044\u304b\u3068\u3002\n<\/p>\n<p>\n\u30a2\u30bd\u30b7\u30a8\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u304c\u7d42\u308f\u3063\u305f\u3089 View \u3060\u3051\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002\n<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\ncake bake View Store\n<\/pre>\n<p>\n\u3068\u3059\u308b\u3068 Store \u30e2\u30c7\u30eb\u306b\u95a2\u3059\u308b View \u3060\u3051\u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002cake bake all \u3092\u3059\u308b\u3068\u305b\u3063\u304b\u304f\u8a2d\u5b9a\u3057\u305f $belongsTo \u304c\u6d88\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<\/p>\n<p><a href='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/01\/wpid-dworkblogimage20140128_03org.jpg'><img border='0' src='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/01\/wpid-dworkblogimage20140128_03thum.jpg'\/><\/a><\/p>\n<p>\n\u30a2\u30bd\u30b7\u30a8\u30fc\u30b7\u30e7\u30f3\u3092\u3064\u3051\u305f\u3068\u304d\u306b\u306f\u3001\u6307\u5b9a\u5148\u306e\u30da\u30fc\u30b8\u304c\u958b\u304f\u30ea\u30f3\u30af\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002\n<\/p>\n<p>\n\u25a0View\u3067\u30ea\u30f3\u30af\u5148\u306e\u540d\u79f0\u3092\u5909\u3048\u308b\n<\/p>\n<p>\n\u5148\u307b\u3069\u306e SellingCompanyID\uff08\u4f1a\u793eID\uff09\u306f\u308f\u304b\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u304c\u6570\u5024\u306e\u307e\u307e\u3060\u3068\u7de8\u96c6\u3057\u3065\u3089\u3044\u3067\u3059\u306d\u3002\u3053\u308c\u306f View \u306e\u307b\u3046\u3092\u76f4\u63a5\u4fee\u6b63\u3057\u307e\u3059\u3002 $belongsTo \u3067\u8a2d\u5b9a\u3057\u305f\u3068\u304d\u306f\u3001$store[&#8216;Sellingcompany&#8217;][&#8216;ID&#8217;] \u306e\u3088\u3046\u306b\u5916\u90e8\u9023\u643a\u5148\u306e\u30c6\u30fc\u30d6\u30eb\u540d\u3068ID\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30da\u30fc\u30b8\u3092\u958b\u304f\u3068\u304d\u306f\u3001ID\u3067\u6307\u5b9a\u3059\u308b\u306e\u3067\u3059\u304c\u753b\u9762\u8868\u793a\u306e\u5834\u5408\u306f\u3001<br \/>\n$store[&#8216;Sellingcompany&#8217;][&#8216;Name&#8217;] \u306e\u3088\u3046\u306b\u540d\u524d\u3092\u8a2d\u5b9a\u3057\u3066\u304a\u304d\u307e\u3059\u3002\n<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\n&lt;td&gt;\n  &lt;?php echo $this-&gt;Html-&gt;link($store&#x5B;&#039;Sellingcompany&#039;]&#x5B;&#039;Name&#039;], array(&#039;controller&#039; =&gt; &#039;sellingcompanies&#039;, &#039;action&#039; =&gt; &#039;view&#039;, $store&#x5B;&#039;Sellingcompany&#039;]&#x5B;&#039;ID&#039;])); ?&gt;\n&lt;\/td&gt;\n&lt;td&gt;\n  &lt;?php echo $this-&gt;Html-&gt;link($store&#x5B;&#039;Areagroup&#039;]&#x5B;&#039;Name&#039;], array(&#039;controller&#039; =&gt; &#039;areagroups&#039;, &#039;action&#039; =&gt; &#039;view&#039;, $store&#x5B;&#039;Areagroup&#039;]&#x5B;&#039;ID&#039;])); ?&gt;\n&lt;\/td&gt;\n<\/pre>\n<p>\n\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u4f1a\u793e\u540d\u3068\u5730\u57df\u540d\u3092\u304c\u8868\u793a\u3067\u304d\u307e\u3059\u3002\n<\/p>\n<p><a href='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/01\/wpid-dworkblogimage20140128_04org.jpg'><img border='0' src='http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/01\/wpid-dworkblogimage20140128_04thum.jpg'\/><\/a><\/p>\n<p>\n\u5b9f\u969b\u306f\u3001CakePHP \u306f Web API \u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3068\u3057\u304b\u4f7f\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3053\u306e View \u306f\u4f7f\u308f\u308c\u307e\u305b\u3093\u3002\u3067\u3059\u304c\u3001\u6700\u521d\u306e\u30c7\u30d0\u30c3\u30b0\u6642\u306b\u306f\u6709\u52b9\u306a\u306e\u3068\u3001\u7c21\u5358\u306a\u30c7\u30fc\u30bf\u7de8\u96c6\u306a\u3089\u3070\u3053\u308c\u3067\u5341\u5206\u306a\u306e\u3067\u305d\u306e\u307e\u307e\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u521d\u306b CakePHP \u306e cake bake all \u3092\u4f7f\u3063\u3066 Model\/View\/Controller \u3092\u4e00\u6c17\u306b\u4f5c\u6210\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u65e2\u5b58\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u79fb\u884c\u3059\u308b\u5834\u5408\u3001CakePHP \u306e\u8907\u6570\u5f62\u3063\u3066\u306e\u306b\u3072\u3063\u304b\u304b\u308a &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/5345\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[20,60],"tags":[],"class_list":["post-5345","post","type-post","status-publish","format-standard","hentry","category-cakephp","category-wpf"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=5345"}],"version-history":[{"count":2,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5345\/revisions"}],"predecessor-version":[{"id":5348,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5345\/revisions\/5348"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=5345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=5345"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=5345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}