请帮助我理解正确的方式使用模板继承在小枝。
我有一个模板base.html.twig,所有其他模板都可以扩展它。这包括html,头部,主体等标签和几个街区。我想将< head >部分从base.html.twig模板移到它自己的文件head.html.twig中。如果我使用include指令,那么扩展模板将不再正确地覆盖该部分中的title块。很明显这是个可怕的传说。怎样才是正确
:{% if presenter.hasErrors(constant('Admin\App\ViewPresenters\EditorPresenter::FORM_ERRORS') )%}和它抛出的错误to Admin\App\ViewPresenters::hasErrors() must be of the type string, null given, called in /vendor/twig/twig/src/Extension/CoreExt