{"id":1201,"date":"2019-12-01T11:26:48","date_gmt":"2019-12-01T02:26:48","guid":{"rendered":"https:\/\/naoya-ono.com\/blog\/?p=1201"},"modified":"2019-12-02T13:43:08","modified_gmt":"2019-12-02T04:43:08","slug":"fuelphp-form","status":"publish","type":"post","link":"https:\/\/naoya-ono.com\/blog\/fuelphp-form\/","title":{"rendered":"\u3010FuelPHP\u306e\u4f7f\u3044\u65b9\u3011View\u3067Form\u30bf\u30b0\u3092\u751f\u6210\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<div class=\"memo \">\n<div class=\"memo_ttl dfont\"> \u59cb\u3081\u306b<\/div>\n<p>\u3053\u306e\u30da\u30fc\u30b8\u306f\u3001PHP\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300c<strong>FuelPHP<\/strong>\u300d\u306e\u5b66\u7fd2\u4e2d\u306e\u50d5\u304c\u30e1\u30e2\u3068\u3057\u3066\u6b8b\u3057\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u3002\u5185\u5bb9\u306b\u9593\u9055\u3044\u304c\u3042\u308c\u3070\u3054\u9023\u7d61\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002<\/p>\n<\/div>\n<p class=\"p1\">View\u3067Form\u3092\u751f\u6210\u3059\u308b\u306b\u306fForm\u30af\u30e9\u30b9\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<h2 class=\"hh hh5 pastel-bc\" id=\"i-0\">Form\u306e\u958b\u59cb\u30bf\u30b0\u30fb\u7d42\u4e86\u30bf\u30b0<\/h2>\n<p class=\"p1\">\u307e\u305a\u958b\u59cb\u30bf\u30b0\u3068\u7d42\u4e86\u30bf\u30b0&lt;form&gt;&lt;\/form&gt;\u3092\u4f5c\u308b\u306b\u306f\u6b21\u306e\u3088\u3046\u306b<strong>Form::open()\u3001Form::close()\u30e1\u30bd\u30c3\u30c9<\/strong>\u3092\u4f7f\u3063\u3066\u66f8\u304d\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>&lt;?= Form::open() ?&gt;&nbsp; \/\/\u958b\u59cb\u30bf\u30b0\n\n\uff08\u3053\u306e\u4e2d\u306binput\u3084textarea\u306a\u3069\u3092\u8a18\u8ff0\u3059\u308b\uff09\n\n&lt;?= Form::close() ?&gt; \/\/\u7d42\u4e86\u30bf\u30b0<\/code><\/pre>\n<\/div>\n<div class=\"memo \">\n<div class=\"memo_ttl dfont\"> \u88dc\u8db3<\/div>\n<p><strong><span class=\"blue\">&lt;?=<\/span><\/strong> \u306f <span class=\"blue\"><strong>&lt;? echo<\/strong><\/span> \u3068\u540c\u3058\u610f\u5473\u3067\u3059\u3002<\/p>\n<\/div>\n<p class=\"p1\">Form::open()\u30e1\u30bd\u30c3\u30c9\u306e\u5f15\u6570\u306b\u306f\u3001\u6587\u5b57\u5217\u304b\u914d\u5217\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p class=\"p1\">\u5358\u306b\u30d5\u30a9\u30fc\u30e0\u306e\u9001\u4fe1\u5148\uff08<span class=\"s1\">action<\/span>\u5c5e\u6027\uff09\u3060\u3051\u3092\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u6587\u5b57\u5217\u3067\u300c<b>\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u540d<\/b><span class=\"s1\"><b>\/<\/b><\/span><b>\u30a2\u30af\u30b7\u30e7\u30f3\u540d<\/b>\u300d\u306e\u5f62\u3067\u6307\u5b9a\u3057\u3001class\u3084method\u306a\u3069\u6307\u5b9a\u3059\u308b\u9805\u76ee\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u914d\u5217\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<div class=\"sng-box box26\">\n<div class=\"box-title\">Form::open()\u30e1\u30bd\u30c3\u30c9\u306e\u66f8\u304d\u65b9\u306e\u4f8b<\/div>\n<div class=\"box-content\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>&lt;?= Form::open('auth\/login') ?&gt;<\/code><\/pre>\n<\/div>\n<p>\u4e0a\u306e\u5834\u5408\u3001auth\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306e\u3000login\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u547c\u3070\u308c\u307e\u3059\u3002method\u5c5e\u6027\u3092\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u306fPOST\u9001\u4fe1\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>&lt;?= Form::open(array('action' =&gt; 'auth\/login', 'class' =&gt; 'c-form')) ?&gt;<\/code><\/pre>\n<\/div>\n<p class=\"p1\">\u4e0a\u8a18\u306e\u3088\u3046\u306b\u66f8\u3044\u305f\u5834\u5408\u3001\u30af\u30e9\u30b9\u306f\u300cc-form\u300d\u304c\u8a2d\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/div>\n<\/div>\n<p class=\"p1\">\u3061\u306a\u307f\u306b\u3001\u30d5\u30a9\u30fc\u30e0\u306e\u9001\u4fe1\u5148\u3092\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u81ea\u8eab\u306e\u30da\u30fc\u30b8\u304c\u9001\u4fe1\u5148\u306b\u6307\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2 class=\"hh hh5 pastel-bc\" id=\"i-1\">Input\u30bf\u30b0\u306e\u66f8\u304d\u65b9<\/h2>\n<p class=\"p1\">Input\u30bf\u30b0\u306e\u57fa\u672c\u306e\u66f8\u304d\u65b9\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>&lt;?= Form::input('name\u5c5e\u6027', 'value\u5c5e\u6027', array(\u30af\u30e9\u30b9\u540d\u3084\u30d7\u30ec\u30fc\u30b9\u30db\u30eb\u30c0\u30fc\u306a\u3069)) ?&gt;<\/code><\/pre>\n<\/div>\n<p class=\"p1\">\u300cinput\u300d\u306e\u90e8\u5206\u306ftype\u306b\u3088\u3063\u3066\u3001password\u3084file\u306a\u3069\u306b\u7f6e\u304d\u63db\u308f\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u4e0b\u306e\u8868\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<table style=\"border-collapse: collapse; width: 100%; height: 322px;\">\n<tbody>\n<tr style=\"height: 39px; background-color: #1a435d;\">\n<td style=\"width: 24.938%; height: 39px;\"><span style=\"color: #ffffff;\">HTML\u30bf\u30b0<\/span><\/td>\n<td style=\"width: 41.7286%; height: 39px;\"><span style=\"color: #ffffff;\">FuelPHP\u306e\u30e1\u30bd\u30c3\u30c9<\/span><\/td>\n<\/tr>\n<tr style=\"height: 39px;\">\n<td style=\"width: 24.938%; height: 39px;\">&lt;input type=\u201dtext\u201d&gt;<\/td>\n<td style=\"width: 41.7286%; height: 39px;\">Form::input()<\/td>\n<\/tr>\n<tr style=\"height: 39px;\">\n<td style=\"width: 24.938%; height: 39px;\">&lt;input type=\u201dpassword\u201d&gt;<\/td>\n<td style=\"width: 41.7286%; height: 39px;\">Form::password()<\/td>\n<\/tr>\n<tr style=\"height: 39px;\">\n<td style=\"width: 24.938%; height: 39px;\">&lt;input type=\u201dfile\u201d&gt;<\/td>\n<td style=\"width: 41.7286%; height: 39px;\">Form::file()<\/td>\n<\/tr>\n<tr style=\"height: 39px;\">\n<td style=\"width: 24.938%; height: 39px;\">&lt;input type=\u201dcheckbox\u201d&gt;<\/td>\n<td style=\"width: 41.7286%; height: 39px;\">Form::checkbox()<\/td>\n<\/tr>\n<tr style=\"height: 39px;\">\n<td style=\"width: 24.938%; height: 39px;\">&lt;input type=\u201dradio\u201d&gt;<\/td>\n<td style=\"width: 41.7286%; height: 39px;\">Form::radio()<\/td>\n<\/tr>\n<tr style=\"height: 39px;\">\n<td style=\"width: 24.938%; height: 39px;\">&lt;input type=\u201dhidden\u201d&gt;<\/td>\n<td style=\"width: 41.7286%; height: 39px;\">Form::hidden();<\/td>\n<\/tr>\n<tr style=\"height: 39px;\">\n<td style=\"width: 24.938%; height: 39px;\">&lt;input type=\u201dsubmit\u201d&gt;<\/td>\n<td style=\"width: 41.7286%; height: 39px;\">Form::submit();<\/td>\n<\/tr>\n<tr style=\"height: 10px;\">\n<td style=\"width: 24.938%; height: 10px;\">&lt;textarea&gt;&lt;\/textarea&gt;<\/td>\n<td style=\"width: 41.7286%; height: 10px;\">Form::textarea();<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div id=\"rinkerid1181\" class=\"yyi-rinker-contents  yyi-rinker-postid-1181 yyi-rinker-img-m yyi-rinker-catid-12 yyi-rinker-catid-3 \">\n<div class=\"yyi-rinker-box\">\n<div class=\"yyi-rinker-image\">\n\t\t\t\t\t\t\t<a href=\"https:\/\/www.amazon.co.jp\/dp\/4800710642?tag=naoya-ono-22&amp;linkCode=ogi&amp;th=1&amp;psc=1\" rel=\"nofollow\" class=\"yyi-rinker-tracking\" data-click-tracking=\"amazon_img 1181 \u6539\u8a02 FuelPHP\u5165\u9580\" data-vars-click-id=\"amazon_img 1181 \u6539\u8a02 FuelPHP\u5165\u9580\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/m.media-amazon.com\/images\/I\/51eQlQPe6TL._SL160_.jpg\" width=\"125\" height=\"160\" class=\"yyi-rinker-main-img\" style=\"border: none;\"><\/a>\t\t\t\t\t<\/div>\n<div class=\"yyi-rinker-info\">\n<div class=\"yyi-rinker-title\">\n\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.amazon.co.jp\/dp\/4800710642?tag=naoya-ono-22&amp;linkCode=ogi&amp;th=1&amp;psc=1\" rel=\"nofollow\" class=\"yyi-rinker-tracking\" data-click-tracking=\"amazon_title 1181 \u6539\u8a02 FuelPHP\u5165\u9580\" data-vars-amp-click-id=\"amazon_title 1181 \u6539\u8a02 FuelPHP\u5165\u9580\">\u6539\u8a02 FuelPHP\u5165\u9580<\/a>\t\t\t\t\t\t\t<\/div>\n<div class=\"yyi-rinker-detail\">\n<div class=\"credit-box\">created by&nbsp;<a href=\"https:\/\/oyakosodate.com\/rinker\/\" rel=\"nofollow noopener\" target=\"_blank\">Rinker<\/a><\/div>\n<div class=\"price-box\">\n\t\t\t\t\t\t\t<\/div>\n<\/p><\/div>\n<ul class=\"yyi-rinker-links\">\n<li class=\"amazonkindlelink\">\n\t\t\t\t\t\t<a href=\"https:\/\/www.amazon.co.jp\/gp\/product\/B00OZGM9VI\/ref=as_li_qf_asin_il_tl?ie=UTF8&amp;tag=naoya-ono-22&amp;creative=1211&amp;linkCode=as2&amp;creativeASIN=B00OZGM9VI&amp;linkId=e7f48e4daa6fff821fa6a5936e410ccd\" rel=\"nofollow\" class=\"yyi-rinker-link yyi-rinker-tracking\" data-click-tracking=\"amazon_kindle 1181 \u6539\u8a02 FuelPHP\u5165\u9580\" data-vars-amp-click-id=\"amazon_kindle 1181 \u6539\u8a02 FuelPHP\u5165\u9580\">Kindle<\/a>\t\t\t\t\t<\/li>\n<li class=\"amazonlink\">\n\t\t\t\t\t\t<a href=\"https:\/\/www.amazon.co.jp\/dp\/4800710642?tag=naoya-ono-22&amp;linkCode=ogi&amp;th=1&amp;psc=1\" rel=\"nofollow\" class=\"yyi-rinker-link yyi-rinker-tracking\" data-click-tracking=\"amazon 1181 \u6539\u8a02 FuelPHP\u5165\u9580\" data-vars-amp-click-id=\"amazon 1181 \u6539\u8a02 FuelPHP\u5165\u9580\">Amazon<\/a>\t\t\t\t\t<\/li>\n<li class=\"rakutenlink\">\n\t\t\t\t\t\t<a href=\"https:\/\/hb.afl.rakuten.co.jp\/hgc\/16781883.64066d33.16781884.4f333982\/Rinker_o_20191129121916?pc=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FFuelPHP%25E5%2585%25A5%25E9%2596%2580%25E6%2594%25B9%25E8%25A8%2582%2F%3Ff%3D1%26grp%3Dproduct&amp;m=https%3A%2F%2Fsearch.rakuten.co.jp%2Fsearch%2Fmall%2FFuelPHP%25E5%2585%25A5%25E9%2596%2580%25E6%2594%25B9%25E8%25A8%2582%2F%3Ff%3D1%26grp%3Dproduct\" rel=\"nofollow\" class=\"yyi-rinker-link yyi-rinker-tracking\" data-click-tracking=\"rakuten 1181 \u6539\u8a02 FuelPHP\u5165\u9580\" data-vars-amp-click-id=\"rakuten 1181 \u6539\u8a02 FuelPHP\u5165\u9580\">\u697d\u5929\u5e02\u5834<\/a>\t\t\t\t\t<\/li>\n<li class=\"yahoolink\">\n\t\t\t\t\t\t<a href=\"https:\/\/shopping.yahoo.co.jp\/search?p=FuelPHP%E5%85%A5%E9%96%80%E6%94%B9%E8%A8%82\" rel=\"nofollow\" class=\"yyi-rinker-link yyi-rinker-tracking\" data-click-tracking=\"yahoo 1181 \u6539\u8a02 FuelPHP\u5165\u9580\" data-vars-amp-click-id=\"yahoo 1181 \u6539\u8a02 FuelPHP\u5165\u9580\">Yahoo\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0<\/a>\t\t\t\t\t<\/li>\n<li class=\"freelink2\">\n\t\t\t\t\t\t<a href=\"https:\/\/ck.jp.ap.valuecommerce.com\/servlet\/referral?sid=3490090&amp;pid=886213926&amp;vc_url=https%3A%2F%2Fwww.kinokuniya.co.jp%2Ff%2Fdsg-01-9784800710642&amp;vcpub=0.385398&amp;vcid=KQI63vFBqTZKzp_mKHNhDL88-TLcfurZXUncSyO4L1lMfzhKJMp4iElAZ6gtclOxN4PgppL2OGXu-LJ2vQT8VHBonUmDiWFfSoSwZDvsiu-P1enKuOTSkT74zES6mNh6SaSRcPdhAR2wbRh-mkl3NlD65o7XCA0y&amp;isec=1574997808\" rel=\"nofollow\" class=\"yyi-rinker-link yyi-rinker-tracking\" data-click-tracking=\"free_2 1181 \u6539\u8a02 FuelPHP\u5165\u9580\" data-vars-amp-click-id=\"free_2 1181 \u6539\u8a02 FuelPHP\u5165\u9580\">\u7d00\u4f0a\u570b\u5c4b\u66f8\u5e97<\/a>\t\t\t\t\t<\/li>\n<\/ul><\/div>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>View\u3067Form\u3092\u751f\u6210\u3059\u308b\u306b\u306fForm\u30af\u30e9\u30b9\u3092\u5229\u7528\u3057\u307e\u3059\u3002 Form\u306e\u958b\u59cb\u30bf\u30b0\u30fb\u7d42\u4e86\u30bf\u30b0 \u307e\u305a\u958b\u59cb\u30bf\u30b0\u3068\u7d42\u4e86\u30bf\u30b0&lt;form&gt;&lt;\/form&gt;\u3092\u4f5c\u308b\u306b\u306f\u6b21\u306e\u3088\u3046\u306bForm::open()\u3001Form: &#8230; <\/p>\n","protected":false},"author":1,"featured_media":1216,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,3],"tags":[],"_links":{"self":[{"href":"https:\/\/naoya-ono.com\/blog\/wp-json\/wp\/v2\/posts\/1201"}],"collection":[{"href":"https:\/\/naoya-ono.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/naoya-ono.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/naoya-ono.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/naoya-ono.com\/blog\/wp-json\/wp\/v2\/comments?post=1201"}],"version-history":[{"count":15,"href":"https:\/\/naoya-ono.com\/blog\/wp-json\/wp\/v2\/posts\/1201\/revisions"}],"predecessor-version":[{"id":1259,"href":"https:\/\/naoya-ono.com\/blog\/wp-json\/wp\/v2\/posts\/1201\/revisions\/1259"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/naoya-ono.com\/blog\/wp-json\/wp\/v2\/media\/1216"}],"wp:attachment":[{"href":"https:\/\/naoya-ono.com\/blog\/wp-json\/wp\/v2\/media?parent=1201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/naoya-ono.com\/blog\/wp-json\/wp\/v2\/categories?post=1201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/naoya-ono.com\/blog\/wp-json\/wp\/v2\/tags?post=1201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}