나는 나뭇 가지와 함께 silex를 사용합니다. 나뭇 가지에 기본 테마를 설정하는 방법은 무엇입니까?
나는 form_div_layout 사용자 정의 을 만들고 난이$app->register(new Silex\Provider\TwigServiceProvider(), array(
'twig.path' => __DIR__ . '/../views',
'twig.options' => array(
'cache' => __DIR__ . '/../cache/twig',
'strict_variables' => false
),
'twig.form.templates'=> [WEBROOT . '/form_div_layout.twig']
));
같은 TwigService 공급자를 등록 (예를 들어) 웹 루트에
를 넣어하지만 난 방법을 오류 Twig_Error_Loader: Template "/home/versh/sale/web/form_div_layout.twig" is not defined() in "layout.twig" at line 52.
에게 있습니다 테마를 올바르게 등록 하시겠습니까? 나는 내가 twig.path에 테마를 넣어 경우가 작동합니다 알고 있지만,이 솔루션