{"id":195,"date":"2012-01-07T22:39:09","date_gmt":"2012-01-08T06:39:09","guid":{"rendered":"http:\/\/h2plus.biz\/hiromitsu\/?p=195"},"modified":"2013-07-07T00:18:46","modified_gmt":"2013-07-07T07:18:46","slug":"%e8%a4%87%e6%95%b0%e3%81%ae%e3%83%93%e3%83%a5%e3%83%bc%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88%e3%82%92%e3%83%ac%e3%83%b3%e3%83%80%e3%83%aa%e3%83%b3%e3%82%b0%e3%81%99%e3%82%8b%e3%82%a2%e3%82%af","status":"publish","type":"post","link":"https:\/\/h2plus.biz\/hiromitsu\/entry\/195","title":{"rendered":"\u8907\u6570\u306e\u30d3\u30e5\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u30a2\u30af\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc"},"content":{"rendered":"<p>\u7d71\u4e00\u3055\u308c\u305f\u30da\u30fc\u30b8\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u30b5\u30a4\u30c8\u3092Zend Framework\u3067\u4f5c\u308b\u306e\u306b<code>Zend_Layout<\/code>\u3092\u3088\u304f\u4f7f\u3046\u3002\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304f\u3068\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;?php echo $this-&gt;doctype() ?&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;?php echo $this-&gt;headMeta() ?&gt;\r\n&lt;?php echo $this-&gt;headTitle() ?&gt;\r\n&lt;?php echo $this-&gt;headLink() ?&gt;\r\n&lt;?php echo $this-&gt;headStyle() ?&gt;\r\n&lt;?php echo $this-&gt;headScript() ?&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;?php echo $this-&gt;layout()-&gt;content ?&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p><!--more--><br \/>\n11\u884c\u76ee\u3067\u306f\u547c\u3073\u51fa\u3055\u308c\u305f\u30a2\u30af\u30b7\u30e7\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u306b\u5bfe\u5fdc\u3059\u308b\u30d3\u30e5\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3055\u308c\u308b\u3002\u4f8b\u3048\u3070\u30c6\u30ad\u30b9\u30c8\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u308a\u3001\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u5165\u529b\u3057\u305f\u6587\u5b57\u5217\u3092\u30c0\u30a4\u30a2\u30ed\u30b0\u306b\u8868\u793a\u3055\u305b\u308b\u3068\u3057\u3088\u3046\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/ controllers\/IndexController.php\r\nclass IndexController extends Zend_Controller_Action\r\n{\r\n    public function indexAction()\r\n    {\r\n        $this-&gt;view-&gt;id = &quot;msg&quot;;\r\n    }\r\n}\r\n<\/pre>\n<p>\u30d3\u30e5\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u5074\u3067\u306f\u5909\u6570<code>id<\/code>\u304c\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/ views\/scritps\/index\/index.phtml\r\n&lt;script type=&quot;text\/javascript&quot;&gt;\r\n$(function() {\r\n    $('form').submit(function() {\r\n        alert($('#&lt;?php echo $this-&gt;id ?&gt;').value());\r\n        return false;\r\n    });\r\n});\r\n&lt;\/script&gt;\r\n&lt;form&gt;\r\n&lt;input type=&quot;text&quot; id=&quot;&lt;?php echo $this-&gt;id ?&gt;&quot; \/&gt;\r\n&lt;input type=&quot;submit&quot; \/&gt;\r\n&lt;\/form&gt;\r\n<\/pre>\n<p>\u671f\u5f85\u901a\u308a\u306e\u52d5\u4f5c\u3092\u3059\u308b\u306e\u3067\u60aa\u304f\u306f\u306a\u3044\u304c\u3001\u3067\u304d\u308b\u3053\u3068\u306a\u3089\u3070jQuery\u3092\u5b9f\u88c5\u3059\u308b<code>&lt;script&gt;<\/code>\u30bf\u30b0\u306f\u3001<code>&lt;body&gt;<\/code>\u30bf\u30b0\u5185\u3067\u306f\u306a\u304f<code>&lt;head&gt;<\/code>\u30bf\u30b0\u306b\u7d0d\u3081\u305f\u3044\u3068\u3053\u308d\u3002jQuery\u306e\u5b9f\u88c5\u3092\u5225\u306ejs\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304f\u65b9\u6cd5\u3082\u3042\u308b\u304c\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u3054\u3068\u306bjs\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u306e\u3082\u30d0\u30ab\u30d0\u30ab\u3057\u3044\u3057\u3001jQuery\u90e8\u5206\u306bPHP\u30b3\u30fc\u30c9\u3092\u57cb\u3081\u8fbc\u3081\u308b\u30e1\u30ea\u30c3\u30c8\u304c\u306a\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u3002\u4e0a\u8a18\u306f\u3042\u307e\u308a\u826f\u3044\u4f8b\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u304c\u3001HTML\u3068JavaScript\u3067\u5171\u901a\u3059\u308b\u5909\u6570\u3092\u6271\u3044\u305f\u3044\u30b1\u30fc\u30b9\u306f\u5c11\u306a\u304b\u3089\u305a\u3042\u308b\u3002<\/p>\n<h3>\u30ec\u30a4\u30a2\u30a6\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4fee\u6b63<\/h3>\n<p><code>IndexController\u306eindexAction()<\/code>\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u5fdc\u3059\u308b\u30d3\u30e5\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f8b\u306b\u6319\u3052\u308b\u3068\u3001<code>&lt;body&gt;<\/code>\u30bf\u30b0\u5185\u306f<code>index.phtml<\/code>\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u3066\u3001<code>&lt;head&gt;<\/code>\u30bf\u30b0\u5185\u306b\u53ce\u3081\u305f\u3044JavaScript\u306f<code>index.js<\/code>\u3001CSS\u306f<code>index.css<\/code>\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3044\u308f\u3051\u3002<\/p>\n<p>\u307e\u305a\u3001\u30ec\u30a4\u30a2\u30a6\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4ee5\u4e0b\u306e\u7528\u306b\u66f8\u304d\u63db\u3048\u308b\u3002<\/p>\n<pre class=\"brush: php; highlight: [9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]; title: ; notranslate\" title=\"\">\r\n&lt;?php echo $this-&gt;doctype() ?&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;?php echo $this-&gt;headMeta() ?&gt;\r\n&lt;?php echo $this-&gt;headTitle() ?&gt;\r\n&lt;?php echo $this-&gt;headLink() ?&gt;\r\n&lt;?php echo $this-&gt;headStyle() ?&gt;\r\n&lt;?php echo $this-&gt;headScript() ?&gt;\r\n&lt;?php\r\n$javascript = $this-&gt;layout()-&gt;javascript;\r\nif(!empty($javascript)) : ?&gt;\r\n&lt;script type=&quot;text\/javascript&quot;&gt;\r\n&lt;?php echo $javascript ?&gt;\r\n&lt;\/script&gt;\r\n&lt;?php endif; ?&gt;\r\n&lt;?php\r\n$stylesheet = $this-&gt;layout()-&gt;stylesheet;\r\nif(!empty($stylesheet)) : ?&gt;\r\n&lt;style type=&quot;text\/css&quot;&gt;\r\n&lt;?php echo $stylesheet ?&gt;\r\n&lt;\/style&gt;\r\n&lt;?php endif; ?&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;?php echo $this-&gt;layout()-&gt;content ?&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>\u4eca\u307e\u3067\u306f<code>index.phtml<\/code>\u5185\u306bJavaScript\u3084CSS\u3092\u57cb\u3081\u8fbc\u3080\u305f\u3081\u306b\u3001\u3044\u3061\u3044\u3061<code>&lt;script&gt;<\/code>\u30bf\u30b0\u3084<code>&lt;style&gt;<\/code>\u30bf\u30b0\u306a\u3069\u3092\u66f8\u304f\u5fc5\u8981\u304c\u3042\u3063\u305f\u304c\u3001\u3053\u306e\u90e8\u5206\u3082\u30ec\u30a4\u30a2\u30a6\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u542b\u3081\u3066\u3057\u307e\u3048\u3070\u3001\u82e5\u5e72\u306a\u304c\u3089\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u91cf\u3082\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<h3>\u30a2\u30af\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc\u306e\u5b9f\u88c5<\/h3>\n<p>\u4e0a\u8a18\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u3001<code>Zend_Layout<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e<code>javascript<\/code>\u30d7\u30ec\u30a4\u30b9\u30db\u30eb\u30c0\u306bJavaScript\u90e8\u5206\u304c\u3001<code>stylesheet<\/code>\u30d7\u30ec\u30a4\u30b9\u30db\u30eb\u30c0\u306bCSS\u90e8\u5206\u304c\u3001\u305d\u308c\u305e\u308c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3068\u3057\u3066\u308b\u3002\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc\u3092\u5b9f\u88c5\u3057\u3066\u3044\u3053\u3046\u3002<\/p>\n<p>JavaScript\u3067\u3082CSS\u3067\u3082\u3001\u300c<code>Zend_Layout<\/code>\u306e\u7279\u5b9a\u306e\u30d7\u30ec\u30a4\u30b9\u30db\u30eb\u30c0\u306b\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u305f\u30d3\u30e5\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5185\u5bb9\u3092\u683c\u7d0d\u3059\u308b\u300d\u3068\u3044\u3046\u90e8\u5206\u306f\u5171\u901a\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u307e\u305a\u306f\u57fa\u5e95\u30af\u30e9\u30b9\u3068\u306a\u308b<code>PartialView<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc\u3092\u4f5c\u308b\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/ controllers\/helpers\/PartialView.php\r\n\r\nclass My_Action_Helper_PartialView extends Zend_Controller_Action_Helper_Abstract\r\n{\r\n    public function render($name, $suffix, $action=null)\r\n    {\r\n        $renderer = clone Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');\r\n        $renderer-&gt;renderBySpec($action, array('suffix' =&gt; $suffix), $name);\r\n    }\r\n\r\n    public function direct($name, $suffix, $action=null)\r\n    {\r\n        $this-&gt;render($name, $suffix, $action);\r\n    }\r\n}\r\n<\/pre>\n<p><code>render()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e<code>$name<\/code>\u306f\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u7d50\u679c\u3092\u683c\u7d0d\u3059\u308b<code>Zend_Layout<\/code>\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u30ad\u30fc\u306e\u540d\u524d\u3001<code>$suffix<\/code>\u306f\u5bfe\u5fdc\u3059\u308b\u30d3\u30e5\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u62e1\u5f35\u5b50\u3001<code>$action<\/code>\u306f\u547c\u3073\u51fa\u3057\u5143\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30e1\u30bd\u30c3\u30c9\u540d\u3068\u306a\u308b\u30027\u884c\u76ee\u3067\u306f\u3001\u30d8\u30eb\u30d1\u30fc\u30d6\u30ed\u30fc\u30ab\u304b\u3089\u3001\u51e6\u7406\u4e2d\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b<code>ViewRenderer<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc\u3092\u8907\u88fd\u3057\u3066\u3044\u308b\u3002\u306a\u305c\u30d8\u30eb\u30d1\u30fc\u30d6\u30ed\u30fc\u30ab\u304b\u3089\u53d6\u5f97\u3057\u305f<code>ViewRenderer<\/code>\u3092\u76f4\u63a5\u4f7f\u7528\u3057\u306a\u3044\u304b\u3068\u3044\u3046\u3068\u3001\u5f8c\u7d9a\u306e<code>renderBySpec()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u547c\u3073\u51fa\u3057\u306b\u3088\u3063\u3066\u3001\u51e6\u7406\u4e2d\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b<code>ViewRenderer<\/code>\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3057\u3066\u3057\u307e\u3046\u304b\u3089\u3002\u306a\u304a\u3001<code>$action<\/code>\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3057\u306a\u304b\u3063\u305f\u5834\u5408\u3001<code>ViewRenderer<\/code>\u306f\u51e6\u7406\u4e2d\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u304b\u3089\u5bfe\u5fdc\u3059\u308b\u30a2\u30af\u30b7\u30e7\u30f3\u30e1\u30bd\u30c3\u30c9\u3092\u88dc\u5b8c\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n<p><code>direct()<\/code>\u30e1\u30bd\u30c3\u30c9\u306f\u30a2\u30af\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc\u306e\u304a\u6c7a\u307e\u308a\u306e\u30d1\u30bf\u30fc\u30f3\u3002<code>render()<\/code>\u30e1\u30bd\u30c3\u30c9\u306e\u30a8\u30a4\u30ea\u30a2\u30b9\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u3001JavaScript\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u305f\u3081\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc\u3092\u4f5c\u308b\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/ controllers\/helpers\/JsView.php\r\nrequire_once 'PartialView.php';\r\n\r\nclass My_Action_Helper_JsView extends My_Action_Helper_PartialView\r\n{\r\n    public function direct($action=null)\r\n    {\r\n        parent::render('javascript', 'js', $action);\r\n    }\r\n}\r\n<\/pre>\n<p><code>JsView<\/code>\u30d8\u30eb\u30d1\u30fc\u3067\u306f\u3001<code>direct()<\/code>\u30e1\u30bd\u30c3\u30c9\u3060\u3051\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3066\u3044\u308b\u3002<code>PartialView<\/code>\u30d8\u30eb\u30d1\u30fc\u306e<code>render()<\/code>\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3057\u3001\u30d3\u30e5\u30fc\u30b9\u30af\u30ea\u30d7\u30c8<code><em>&lt;action&gt;<\/em>.js<\/code>\u306e\u5185\u5bb9\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u305f\u7d50\u679c\u3092\u3001<code>Zend_Layout<\/code>\u306e<code>javascript<\/code>\u30d7\u30ec\u30a4\u30b9\u30db\u30eb\u30c0\u306b\u683c\u7d0d\u3059\u308b\u3002<\/p>\n<p>CSS\u3092\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3059\u308b\u30a2\u30af\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc\u3082\u3001\u540c\u3058\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/ controllers\/helpers\/CssView.php\r\nrequire_once 'PartialView.php';\r\n\r\nclass My_Action_Helper_CssView extends My_Action_Helper_PartialView\r\n{\r\n    public function direct($action=null)\r\n    {\r\n        parent::render('stylesheet', 'css', $action);\r\n    }\r\n}\r\n<\/pre>\n<h3>JsView\u30a2\u30af\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc\u306e\u4f7f\u3044\u65b9<\/h3>\n<p>\u5192\u982d\u3067\u4f8b\u306b\u6319\u3052\u305f<code>IndexController<\/code>\u306e<code>indexAction()<\/code>\u30e1\u30bd\u30c3\u30c9\u3067\u3001<code>JsView<\/code>\u30a2\u30af\u30b7\u30e7\u30f3\u30d8\u30eb\u30d1\u30fc\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046\u3002<\/p>\n<pre class=\"brush: php; highlight: [7]; title: ; notranslate\" title=\"\">\r\n\/\/ controllers\/IndexController.php\r\nclass IndexController extends Zend_Controller_Action\r\n{\r\n    public function indexAction()\r\n    {\r\n        $this-&gt;view-&gt;id = &quot;msg&quot;;\r\n        $this-&gt;_helper-&gt;jsView();\r\n    }\r\n}\r\n<\/pre>\n<p>\u3053\u308c\u3060\u3051\u3002JavaScript\u3092\u5b9f\u88c5\u3057\u305f\u3044\u30a2\u30af\u30b7\u30e7\u30f3\u30e1\u30bd\u30c3\u30c9\u3067<code>$this->_helper->jsView()<\/code>\u3092\u547c\u3073\u51fa\u3059\u3060\u3051\u3002CSS\u3082\u540c\u69d8\u306b<code>$this->_helper->cssView()<\/code>\u3092\u547c\u3073\u51fa\u3059\u3060\u3051\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001\u5bfe\u5fdc\u3059\u308b\u30d3\u30e5\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u308c\u3070\u3044\u3044\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/ views\/scritps\/index\/index.js\r\n$(function() {\r\n    $('form').submit(function() {\r\n        alert($('#&lt;?php echo $this-&gt;id ?&gt;').value());\r\n        return false;\r\n    });\r\n});\r\n<\/pre>\n<p>\u30d3\u30e5\u30fc\u30b9\u30af\u30ea\u30d7\u30c8\u3060\u304b\u3089\u3001\u5f53\u7136PHP\u306e\u30b3\u30fc\u30c9\u3092\u57cb\u3081\u8fbc\u3080\u3053\u3068\u3082\u3067\u304d\u308b\u3057\u3001<code>$this<\/code>\u3092\u7d4c\u7531\u3057\u3066\u30d3\u30e5\u30fc\u5909\u6570\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u3002\u30a8\u30c7\u30a3\u30bf\u306b\u3088\u3063\u3066\u306f\u3001\u62e1\u5f35\u5b50\u306b\u57fa\u3065\u3044\u3066\u4e88\u7d04\u8a9e\u306a\u3069\u3092\u30cf\u30a4\u30e9\u30a4\u30c8\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u8a00\u8a9e\u5225\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u5206\u3051\u3089\u308c\u308b\u306e\u306f\u91cd\u5b9d\u3059\u308b\u3002<\/p>\n<p><code>index.phtml<\/code>\u3082JavaScript\u3084CSS\u306e\u30b3\u30fc\u30c9\u304c\u6d88\u3048\u3066\u30b9\u30c3\u30ad\u30ea\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/ views\/scritps\/index\/index.phtml\r\n&lt;form&gt;\r\n&lt;input type=&quot;text&quot; id=&quot;&lt;?php echo $this-&gt;id ?&gt;&quot; \/&gt;\r\n&lt;input type=&quot;submit&quot; \/&gt;\r\n&lt;\/form&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u7d71\u4e00\u3055\u308c\u305f\u30da\u30fc\u30b8\u30ec\u30a4\u30a2\u30a6\u30c8\u306e\u30b5\u30a4\u30c8\u3092Zend Framework\u3067\u4f5c\u308b\u306e\u306bZend_Layout\u3092\u3088\u304f\u4f7f\u3046\u3002\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u30ec\u30a4\u30a2\u30a6\u30c8\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u304f\u3068\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308b\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[104,273,16,105,106,20,107],"_links":{"self":[{"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/posts\/195"}],"collection":[{"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/comments?post=195"}],"version-history":[{"count":0,"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/posts\/195\/revisions"}],"wp:attachment":[{"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/media?parent=195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/categories?post=195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/h2plus.biz\/hiromitsu\/wp-json\/wp\/v2\/tags?post=195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}