nitra / e-commerce-site-informationbundle
该包已被废弃且不再维护。未建议替代包。
信息包
v2.0.0
2015-02-12 12:52 UTC
This package is auto-updated.
Last update: 2018-04-17 12:23:13 UTC
README
描述
本插件旨在处理(输出、处理)以下信息
- Information - 文章
- InformationCategory - 信息分类
InformationController
- informationCategoriesModuleAction - 返回当前商店所有活跃分类的所有文章
- informationCategoryPageAction - 返回特定分类的文章
- informationPageAction - 返回特定文章
连接
要将此模块连接到项目,需要在以下文件中进行操作
- composer.json
{
...
"require": {
...
"nitra/e-commerce-site-informationbundle": "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\InformationBundle\NitraInformationBundle(),
//...
);
//...
return $bundles;
}
//...
}
- app/config/routing.yml
#...
nitra_information:
resource: "@NitraInformationBundle/Controller/"
type: annotation
#...