webundle/puzzle-app-newsletter

拼图应用程序通讯

安装: 3

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:symfony-bundle

1.0.0 2018-09-24 13:26 UTC

This package is auto-updated.

Last update: 2024-09-25 08:24:39 UTC


README

=========================

拼图应用程序通讯

步骤 1: 下载捆绑包

打开命令行,进入项目目录,执行以下命令以下载此捆绑包的最新稳定版本

composer require webundle/puzzle-app-newsletter

步骤 2: 启用捆绑包

然后,通过将其添加到项目中app/AppKernel.php文件中注册的捆绑包列表来启用捆绑包

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
{
    $bundles = array(
    // ...

    new Puzzle\App\NewsletterBundle\PuzzleAppNewsletterBundle(),
                    );

 // ...
}

 // ...
}

步骤 3: 注册路由

在应用程序中加载捆绑包的路由定义(通常在app/config/routing.yml文件中)

app/config/routing.yml

puzzle_app:
        resource: "@PuzzleAppNewsletterBundle/Resources/config/routing.yml"

步骤 4: 配置捆绑包

然后,通过将其添加到项目中app/config/config.yml文件下注册的捆绑包列表来配置捆绑包

# Puzzle App Newsletter
puzzle_app_newsletter:
    title: newsletter.title
    description: newsletter.description
    icon: newsletter.icon
    templates:
        subscriber:
            subscribe: 'AppBundle:Newsletter:subscribe.html.twig'