{"id":1081,"date":"2013-09-03T11:47:19","date_gmt":"2013-09-03T02:47:19","guid":{"rendered":"http:\/\/blog.kcmservice.biz\/?p=1081"},"modified":"2014-01-27T12:24:02","modified_gmt":"2014-01-27T03:24:02","slug":"%ef%bc%91%e6%97%a5%e7%9b%ae%e3%80%80curry%e3%81%ae%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%a8%e3%81%af%e3%81%98%e3%82%81%e3%81%a6%e3%81%ae%e5%ae%9f%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/blog.kcmservice.biz\/?p=1081","title":{"rendered":"\uff11\u65e5\u76ee\u3000curry\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u306f\u3058\u3081\u3066\u306e\u5b9f\u884c"},"content":{"rendered":"<p>\u307e\u305a\u306f\u3068\u306b\u304b\u304f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3046\u6e96\u5099\u304b\u3089\u3002<br \/>\n<!--more--><\/p>\n<p>\u8efd\u91cf\u30b7\u30f3\u30d7\u30ebPHP\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af Curry<br \/>\n<a title=\"http:\/\/www.curryfw.net\/\" href=\"http:\/\/www.curryfw.net\/\">http:\/\/www.curryfw.net\/<\/a><\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30da\u30fc\u30b8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u4e2d\u8eab\u3092\u53d6\u308a\u51fa\u3059\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u3044\u304f\u3064\u304b\u3002<br \/>\n\u4eca\u56de\u306fV1.4.9\u3092\u5229\u7528\u3002\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u306f\u3053\u3093\u306a\u611f\u3058\u3002<br \/>\n<a href=\"http:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1082\" alt=\"img1\" src=\"http:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img1-300x217.jpg\" width=\"300\" height=\"217\" srcset=\"https:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img1-300x217.jpg 300w, https:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img1-1024x742.jpg 1024w, https:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img1.jpg 1090w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>site\u30d5\u30a9\u30eb\u30c0\u5185\u306f\u3053\u3093\u306a\u611f\u3058\u3002<br \/>\n<a href=\"http:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1083\" alt=\"img2\" src=\"http:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img2-300x217.jpg\" width=\"300\" height=\"217\" srcset=\"https:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img2-300x217.jpg 300w, https:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img2-1024x742.jpg 1024w, https:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img2.jpg 1090w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>site\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u306e\u304f\u308f\u3057\u3044\u8a71\u306f\u30b3\u30c1\u30e9\u3067\u3002WEB\u306b\u516c\u958b\u3057\u3066\u3044\u308b\u30d5\u30a9\u30eb\u30c0\u3088\u308a\u4e0a\u4f4d\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u30d5\u30a1\u30a4\u30eb\u304c\u914d\u7f6e\u3067\u304d\u306a\u3044\u5834\u5408\u306e\u30ab\u30b9\u30bf\u30e0\u65b9\u6cd5\u3082\u66f8\u3044\u3066\u3042\u308b\u3002<br \/>\n<a title=\"http:\/\/www.curryfw.net\/manual\/dirs\" href=\"http:\/\/www.curryfw.net\/manual\/dirs\" target=\"_blank\">http:\/\/www.curryfw.net\/manual\/dirs<\/a><\/p>\n<p>\u4eca\u56de\u306f\u30ec\u30f3\u9bd6\u3067\u4f7f\u3046\u306e\u3067\u3001\u30ab\u30b9\u30bf\u30e0\u4f8b\u3068\u540c\u3058\u3088\u3046\u306a\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u306b\u3059\u308b\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u300csite\/index.php\u300d\u3067<\/p>\n<blockquote><p>define(&#8216;CURRY_PATH&#8217;, realpath(dirname(__FILE__) . &#8216;\/..\/..\/curry&#8217;));<br \/>\ndefine(&#8216;SITE_PATH&#8217;, realpath(dirname(__FILE__) . &#8216;\/..&#8217;));<\/p><\/blockquote>\n<p>\u3068\u3042\u308b\u3068\u3053\u308d\uff08\u5148\u982d\u3042\u305f\u308a\uff09\u3092<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">\/\/define(&#8216;CURRY_PATH&#8217;, realpath(dirname(__FILE__) . &#8216;\/..\/..\/curry&#8217;));<\/span><br \/>\n<span style=\"color: #ff0000;\"> \/\/define(&#8216;SITE_PATH&#8217;, realpath(dirname(__FILE__) . &#8216;\/..&#8217;));<\/span><br \/>\ndefine(&#8216;CURRY_PATH&#8217;, realpath(dirname(__FILE__) <span style=\"color: #ff0000;\">. &#8216;\/..\/curry&#8217;<\/span>));<br \/>\ndefine(&#8216;SITE_PATH&#8217;, realpath(<span style=\"color: #ff0000;\">dirname(__FILE__)<\/span>));<\/p><\/blockquote>\n<p>\u3068\u7de8\u96c6\u3059\u308b\u3002\u3055\u3089\u306b\u3001<\/p>\n<blockquote><p>\/\/ Set directory settings.<br \/>\nPathManager::setFrameworkRoot(CURRY_PATH);<br \/>\nPathManager::setSystemRoot(SITE_PATH);<\/p>\n<p>\/\/ Execute dispatch process.<br \/>\n$dispatcher = new Dispatcher();<br \/>\n$dispatcher-&gt;setAppEnv(getenv(&#8216;APP_ENV&#8217;));<br \/>\n$dispatcher-&gt;dispatch();<\/p><\/blockquote>\n<p>\u3068\u3042\u308b\u3068\u3053\u308d\uff08\u771f\u3093\u4e2d\u3042\u305f\u308a\uff09\u3092\u3001<\/p>\n<blockquote><p>\/\/ Set directory settings.<br \/>\n<span style=\"color: #ff0000;\"> \/\/PathManager::setFrameworkRoot(CURRY_PATH);<\/span><br \/>\n<span style=\"color: #ff0000;\"> \/\/PathManager::setSystemRoot(SITE_PATH);<\/span><\/p>\n<p>PathManager::setFrameworkRoot(CURRY_PATH);<br \/>\nPathManager::setSystemRoot(SITE_PATH);<br \/>\nPathManager::setControllerDirectory(SITE_PATH <span style=\"color: #ff0000;\">. &#8216;\/controllers&#8217;<\/span>);<br \/>\nPathManager::setModelDirectory(SITE_PATH <span style=\"color: #ff0000;\">. &#8216;\/models&#8217;<\/span>);<br \/>\nPathManager::setViewDirectory(SITE_PATH <span style=\"color: #ff0000;\">. &#8216;\/views&#8217;<\/span>);<br \/>\nPathManager::setHtdocsDirectory(SITE_PATH);<\/p>\n<p>\/\/ Execute dispatch process.<br \/>\n$dispatcher = new Dispatcher();<br \/>\n$dispatcher-&gt;setAppEnv(getenv(&#8216;APP_ENV&#8217;));<br \/>\n$dispatcher-&gt;dispatch();<\/p><\/blockquote>\n<p>\u3068\u3044\u3046\u611f\u3058\u306b\u7de8\u96c6\u3059\u308b\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u7de8\u96c6\u3057\u305f\u3089\u3001curry\u30d5\u30a9\u30eb\u30c0\u3068site\u30d5\u30a9\u30eb\u30c0\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3002<br \/>\n\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u524d\u306b\u300csite\/app\u300d\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a9\u30eb\u30c0\uff14\u3064\u3092\u3001site\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3055\u305b\u308b\u306e\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3002<br \/>\ncurry\u30d5\u30a9\u30eb\u30c0\u306fsite\u30d5\u30a9\u30eb\u30c0\u3068\u540c\u3058\u5834\u6240\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n<p>\u3067\u3001\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3002\u30d5\u30a9\u30eb\u30c0\u306e\u79fb\u52d5\u3092\u3057\u5fd8\u308c\u3068\u304b\u3067\u4f55\u5ea6\u304b\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u304c\u3001\u7121\u4e8b\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u305a\u306b\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u305f\u753b\u9762\u304c\u3001<\/p>\n<p><a href=\"http:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1084\" alt=\"img3\" src=\"http:\/\/blog.kcmservice.biz\/wp\/wp-content\/uploads\/2013\/09\/img3.jpg\" width=\"275\" height=\"210\" \/><\/a><\/p>\n<p>\u3053\u308c\u3060\u3051\u8868\u793a\u3055\u308c\u305f\u3002\u6b63\u89e3\u304b\u4e0d\u6b63\u89e3\u304b\u306f\u308f\u304b\u3089\u306a\u3044\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u30a8\u30e9\u30fc\u304c\u6d88\u3048\u305f\u306e\u3067\u3088\u3057\u3068\u3059\u308b\u3002<br \/>\n\u305d\u306e\u969b\u3001\u300csite\/.htaccess\u300d\u3092\u30ea\u30cd\u30fc\u30e0\u3057\u3066\u3001\u3068\u308a\u3042\u3048\u305a\u5236\u5fa1\u304b\u3089\u5916\u3057\u3066\u304a\u3044\u305f\u3002<br \/>\n\u3053\u3044\u3064\u306f\u5f8c\u65e5\u8a2d\u5b9a\u3057\u306a\u304a\u3059\u3068\u3059\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u305a\u306f\u3068\u306b\u304b\u304f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3046\u6e96\u5099\u304b\u3089\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[31,30],"class_list":["post-1081","post","type-post","status-publish","format-standard","hentry","category-php-framework","tag-curry","tag-php"],"_links":{"self":[{"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/posts\/1081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1081"}],"version-history":[{"count":5,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/posts\/1081\/revisions"}],"predecessor-version":[{"id":1096,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=\/wp\/v2\/posts\/1081\/revisions\/1096"}],"wp:attachment":[{"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kcmservice.biz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}