Sylius 覆盖模板

Sylius override Template

我安装了最新的 (1.0.0-dev) Sylius 和最新的 LTS Symfony (2.8.9),我正在尝试了解如何覆盖任何模板。我找到了这个人 https://www.youtube.com/watch?v=FbujTxpd3WY 但这似乎已经过时了。

为了理解它,我想将 <title> 从 Sylius 更改为其他东西。

AppBundle.php

<?php

namespace AppBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

class AppBundle extends Bundle
{
    public function getParent()
    {
        return 'SyliusShopBundle';
    }
} 

文件夹

layout.html.twig(覆盖)

<title>MYNEWTITLE</title>

但即使在 php app/console cache:clear 之后它也没有改变。谁能指出我最近的教程或看看我错在哪里?

我们不建议为此目的使用 Bundle 的继承,请使用 app/Resources 文件夹覆盖或主题化。

看这里:http://docs.sylius.org/en/latest/customization/template.html

关于主题,在这里:http://docs.sylius.org/en/latest/bundles/SyliusThemeBundle/index.html