{"id":28,"date":"2008-01-20T10:00:57","date_gmt":"2008-01-20T01:00:57","guid":{"rendered":"http:\/\/www.eshima.info\/tech\/?p=27"},"modified":"2008-01-20T10:00:57","modified_gmt":"2008-01-20T01:00:57","slug":"%e5%87%ba%e5%8a%9b%e3%81%99%e3%82%8bhtml%e3%81%ae%e8%a8%ad%e5%ae%9a%e4%b8%8a%e6%9b%b8%e3%81%8d","status":"publish","type":"post","link":"https:\/\/tech.eshima.info\/?p=28","title":{"rendered":"\u51fa\u529b\u3059\u308bHTML\u306e\u8a2d\u5b9a\u4e0a\u66f8\u304d"},"content":{"rendered":"<p>\u53c2\u7167\uff1a<a href=\"http:\/\/bakery.cakephp.org\/articles\/view\/overriding-specific-html-tags-before-using-helper-methods\" title=\"test\" target=\"_blank\">Overriding specific HTML tags before using helper methods<\/a><\/p>\n<p>\u3053\u308c\u306f\u4fbf\u5229\u3060\u3002cakePHP\u3067\u51fa\u529b\u3059\u308bHTML\u30bf\u30b0\u3092\u5fc5\u8981\u306a\u5206\u3060\u3051\u81ea\u5206\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u3002cakePHP\u30ac\u30a4\u30c9\u30d6\u30c3\u30af\u3067\u306fconfig\/tag.ini.php\u3067\u3067\u304d\u308b\u3068\u66f8\u3044\u3066\u3042\u3063\u305f\u304c\u52d5\u304b\u306a\u3044\u3057\u60c5\u5831\u7686\u7121\u3060\u3063\u305f\u30021.2\u7cfb\u3067\u306f\u3053\u3063\u3061\u307f\u305f\u3044\u3002<\/p>\n<p>app\/config\/tags.php\u3092\u4f5c\u6210<\/p>\n<pre line=\"1\" lang=\"PHP\">\n<?php\n$tags = array(\n    'submit' =>'<input class=\"hogehoge\" type=\"submit\" \/>'\/\/\u4ed6\u306e\u30bf\u30b0\u3082\u540c\u69d8\u306b\u81ea\u7531\u81ea\u5728);\n?>\n<\/pre>\n<p>app\/app_helper.php\u3092\u4f5c\u6210<\/p>\n<pre line=\"1\" lang=\"PHP\">\n<?php\nclass AppHelper extends Helper {\n    function __construct() {\n        parent::__construct();\n        $this->loadConfig();\n        \/\/$this->loadConfig('hogehogetags');\/\/\u3053\u308c\u3067\u3001config\/hogehogetags\u3068\u3044\u3046\u52dd\u624b\u306b\u4ed8\u3051\u305f\u540d\u524d\u3067\u3082\u8aad\u307f\u8fbc\u307f\u53ef\n    }\n}\n?>\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u7167\uff1aOverriding specific HT [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-cakephp"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28"}],"version-history":[{"count":0,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions"}],"wp:attachment":[{"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.eshima.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}