{"id":852,"date":"2024-04-15T13:06:49","date_gmt":"2024-04-15T04:06:49","guid":{"rendered":"http:\/\/inwelly.com\/?p=852"},"modified":"2024-04-15T13:06:49","modified_gmt":"2024-04-15T04:06:49","slug":"php-symfony4-the-twig-%eb%a5%bc-%ed%86%b5%ed%95%9c-%ed%99%94%eb%a9%b4-%ec%b6%9c%eb%a0%a5-1","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=852","title":{"rendered":"PHP-Symfony4 The Twig \ub97c \ud1b5\ud55c \ud654\uba74 \ucd9c\ub825 &#8211; 1"},"content":{"rendered":"\n<p>\ud574\ub2f9 \ud3f4\ub354\uc5d0\uc11c \uc544\ub798\uc640 \uac19\uc774 \uc2e4\ud589&nbsp;<\/p>\n\n\n\n<p>#&gt; composer create-project symfony\/skeleton the_example004&nbsp;<\/p>\n\n\n\n<p>#&gt; cd the_example004<\/p>\n\n\n\n<p>#&gt; composer require annotations<\/p>\n\n\n\n<p>#&gt; composer require twig<\/p>\n\n\n\n<p>src\\Controller\\Example004Controller.php \uc791\uc131<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"898\" height=\"609\" src=\"http:\/\/inwelly.com\/wp-content\/uploads\/2024\/04\/image-454.png\" alt=\"\" class=\"wp-image-853\" style=\"width:920px;height:auto\"\/><\/figure>\n\n\n\n<p>templates\\temppage\\show.html.twig \uc791\uc131<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1055\" height=\"474\" src=\"http:\/\/inwelly.com\/wp-content\/uploads\/2024\/04\/image-455.png\" alt=\"\" class=\"wp-image-854\"\/><\/figure>\n\n\n\n<p>#&gt; php -S 127.0.0.1:8000 -t public<\/p>\n\n\n\n<p>\ube0c\ub77c\uc6b0\uc838 \ud654\uba74\uc5d0 \uc2e4\ud589&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"641\" src=\"http:\/\/inwelly.com\/wp-content\/uploads\/2024\/04\/image-456.png\" alt=\"\" class=\"wp-image-855\" style=\"width:920px;height:auto\"\/><\/figure>\n\n\n\n<p>\uc18c\uc2a4 :<a href=\"https:\/\/github.com\/nzhongtting\/symfony_example\/tree\/example003\">\u00a0symfony_example \ube0c\ub79c\uce58(branch) > example003<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud574\ub2f9 \ud3f4\ub354\uc5d0\uc11c \uc544\ub798\uc640 \uac19\uc774 \uc2e4\ud589&nbsp; #&gt; composer create-project symfony\/skeleton the_example004&nbsp; #&gt; cd the_example004 #&gt; composer require annotations #&gt; composer require [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[111],"tags":[],"class_list":["post-852","post","type-post","status-publish","format-standard","hentry","category-symfony"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=852"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/852\/revisions"}],"predecessor-version":[{"id":856,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/852\/revisions\/856"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}