PHP-Symfony4 The Twig 를 통한 화면 출력 – 1

해당 폴더에서 아래와 같이 실행 

#> composer create-project symfony/skeleton the_example004 

#> cd the_example004

#> composer require annotations

#> composer require twig

src\Controller\Example004Controller.php 작성

templates\temppage\show.html.twig 작성

#> php -S 127.0.0.1:8000 -t public

브라우져 화면에 실행 

소스 : symfony_example 브랜치(branch) > example003

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다