{"id":749,"date":"2007-06-27T01:00:00","date_gmt":"2007-06-26T16:00:00","guid":{"rendered":"https:\/\/ecoop.net\/memo\/2007-06-27-1.html"},"modified":"2007-06-27T01:00:00","modified_gmt":"2007-06-26T16:00:00","slug":"2007-06-27-1","status":"publish","type":"post","link":"https:\/\/www.ecoop.net\/memo\/archives\/2007-06-27-1.html","title":{"rendered":"symfony \u306e\u57fa\u790e &#8211; \u30bb\u30c3\u30b7\u30e7\u30f3\u3068\u30b9\u30b3\u30fc\u30d7"},"content":{"rendered":"<p>\nAction \u30af\u30e9\u30b9\u306b\u3066<\/p>\n<table>\n<tr>\n<td>\u30b9\u30b3\u30fc\u30d7    <\/p>\n<td>get \u65b9\u6cd5<\/p>\n<td> set \u65b9\u6cd5 <\/p>\n<td>\u7528\u9014<\/p>\n<tr>\n<td>\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9 \u30b9\u30b3\u30fc\u30d7(\u30da\u30fc\u30b8 \u30b9\u30b3\u30fc\u30d7)<\/p>\n<td> echo $this->foo; <\/p>\n<td> $this->foo = &#8220;boo&#8221;; <\/p>\n<td> View \u3067\u30ed\u30fc\u30ab\u30eb\u5909\u6570\u306e\u3088\u3046\u306b\u53c2\u7167\u53ef\u80fd <\/p>\n<tr>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8\u30b9\u30b3\u30fc\u30d7<\/p>\n<td> $this->getRequest()->getAttribute(&#8220;key&#8221;)<\/p>\n<td>$this->getRequest()->setAttribute(&#8220;key&#8221;,$value)<\/p>\n<td>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u6642\u306a\u3069\u30a2\u30af\u30b7\u30e7\u30f3\u9593\u3067\u306e\u30c7\u30fc\u30bf\u53c2\u7167\u306b\u5229\u7528<\/p>\n<tr>\n<td>\u30e6\u30fc\u30b6\u30b9\u30b3\u30fc\u30d7($_SESSION \u3068\u540c\u7b49)<\/p>\n<td>$this->getUser()->getAttribute(&#8220;key&#8221;)<\/p>\n<td> $this->getUser()->setAttribute(&#8220;key&#8221;, $value) <\/p>\n<td>\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30ab\u30fc\u30c8\u306a\u3069\u30da\u30fc\u30b8\u9077\u79fb\u306e\u3042\u308b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u3067\u5229\u7528<\/table>\n<p>\nJ2EE \u3067\u306e\u30b9\u30b3\u30fc\u30d7\u3068\u7167\u3089\u3057\u5408\u308f\u305b\u3066 symfony \u3067\u306e\u5909\u6570(\u30c7\u30fc\u30bf\u30db\u30eb\u30c0)\u306e\u7a2e\u985e\u3092\u30ea\u30b9\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3057\u305f\u3002<br \/>\n(\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30b9\u30b3\u30fc\u30d7\u306b\u3064\u3044\u3066\u306f\u5fc5\u8981\u6027\u304c\u8584\u3044\u306e\u3067\u5272\u611b)<br \/>\n&nbsp;<br \/>\n\u53c2\u8003:<br \/>\n&#8211; <a href=\"http:\/\/develop.ddo.jp\/symfony\/book\/jp\/1.0\/parameter_holder.html\">\u30d1\u30e9\u30e1\u30fc\u30bf\u30db\u30eb\u30c0\u30fc<\/a>(symfony book \u65e5\u672c\u8a9e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Action \u30af\u30e9\u30b9\u306b\u3066 \u30b9\u30b3\u30fc\u30d7 get \u65b9\u6cd5 set \u65b9\u6cd5 \u7528\u9014 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9 \u30b9\u30b3\u30fc\u30d7(\u30da\u30fc\u30b8 \u30b9\u30b3\u30fc\u30d7) echo $this->foo; $this->foo = &#8220;boo&#8221;; View &hellip; <a href=\"https:\/\/www.ecoop.net\/memo\/archives\/2007-06-27-1.html\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">symfony \u306e\u57fa\u790e &#8211; \u30bb\u30c3\u30b7\u30e7\u30f3\u3068\u30b9\u30b3\u30fc\u30d7<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[32],"class_list":["post-749","post","type-post","status-publish","format-standard","hentry","tag-php"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/comments?post=749"}],"version-history":[{"count":0,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/posts\/749\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/media?parent=749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/categories?post=749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ecoop.net\/memo\/wp-json\/wp\/v2\/tags?post=749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}