seferov/blog-bundle

Symfony Blog Bundle

安装: 587

依赖项: 0

建议者: 0

安全: 0

星标: 3

关注者: 4

分支: 0

开放问题: 1

语言:HTML

类型:symfony-bundle

0.3.1 2016-04-22 07:40 UTC

This package is auto-updated.

Last update: 2024-08-29 04:46:23 UTC


README

Symfony Blog Bundle

安装

下载组件

composer require seferov/blog-bundle

注册

// app/AppKernel.php
// ...
public function registerBundles()
{
    $bundles = array(
        // ...
        new Seferov\BlogBundle\SeferovBlogBundle(),
        new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
        new WhiteOctober\BreadcrumbsBundle\WhiteOctoberBreadcrumbsBundle(),
        new Knp\Bundle\MarkdownBundle\KnpMarkdownBundle(),
        new Sonata\SeoBundle\SonataSeoBundle(),
    );
}

导入路由

# app/config/routing.yml
seferov_blog:
    resource: "@SeferovBlogBundle/Resources/config/routing.yml"
    prefix:   /blog

创建数据库表

bin/console doctrine:schema:update --dump-sql

安装资源

bin/console assets:install

待办事项

  • 管理员模板
  • 移除大量依赖
  • 编写测试
  • 发布稳定版本
  • 文档(特别是关于覆盖模板的部分)
  • 数据集
  • 合适的默认模板

示例