nitra/e-commerce-site-seobundle

此包已被弃用且不再维护。未建议替代包。

Seo Bundle

维护者

详细信息

bitbucket.org/nitra/nep-site-seo

安装: 527

依赖者: 0

建议者: 0

安全: 0

类型:symfony-bundle

v1.0 2014-07-28 17:46 UTC

This package is auto-updated.

Last update: 2018-04-17 12:27:13 UTC


README

描述

输出页面元标签,信息从数据库中选择。数据库由后台管理填充。本捆绑包旨在(输出、处理)与

  • Seo - 关键词,文档的元数据
  • EmbedSeo - 特定类别中特定商品的SEO文本
  • SeoTemplate - 特定类别商品的SEO文本
  • DocsSeoTemplate - 文档的SEO文本

    SeoController

  • seoInfoAction - 搜索所有SEO模板,处理缓存中的数据

连接

要在项目中连接此模块,需要

  • composer.json
{
    ...   
    "require": {
        ...
        "e-commerce-site/seobundle": "dev-master",
        ...
    }
    ...
}
  • app/AppKernel.php
<?php

    //...
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
    //...
    public function registerBundles()
    {
        //...
        $bundles = array(
            //...
            new Nitra\SeoBundle\NitraSeoBundle(),
            //...
        );
        //...
        return $bundles;
    }
    //...
}
  • app/config/routing.yml
nitra_seo:
    resource: "@NitraSeoBundle/Controller"
    type: annotation