lms42 / content-bundle
简单内容管理:页面和分类。
v1.0.0
2013-08-13 10:59 UTC
This package is not auto-updated.
Last update: 2024-09-23 14:54:43 UTC
README
简介
此包提供带有自用管理部分的CMS基本功能。它不需要任何其他包。
重要 此包处于开发中。
功能
- 分类管理(前端 + 后端)。
- 内容管理(前端 + 后端)。
- 包已翻译,请参阅Resources/translations。
需求
- Symfony2与twig。
- Doctrine2,DoctrineExtension & DoctrineFixtures。
- 强烈推荐使用FOSUserBundle(请参阅安装步骤此处)。
- 控制器注释。
- jQuery + twitter bootstrap js。
- Twitter Bootstrap css文件(或具有相同的样式)。
- 建议与SmirikAdminBundle一起使用,它提供公共资源(包括twitter bootstrap & jquery)+ 菜单 + 核心类。
安装
-
将包添加到您的
deps文件中[SmirikContentBundle] git=git://github.com/smirik/SmirikContentBundle.git target=/bundles/Smirik/ContentBundle -
在
autoload.php中注册命名空间(如果您不使用其他Smirik*包)$loader->registerNamespaces(array( ... 'Smirik' => __DIR__.'/../vendor/bundles', )); -
在您的
AppKernel.php中注册包$bundles = array( ... new Smirik\ContentBundle\SmirikContentBundle(), ... ); -
将路由添加到
routing.yml
SmirikContentBundle:
resource: "@SmirikContentBundle/Controller/"
type: annotation
prefix: /
-
更新数据库并加载测试固定数据以查看管理功能
php app/console doctrine:schema:update --force php app/console doctrine:fixtures:load --append -
在
http://host/admin/content/查看测试内容 -
请检查
bootstrap.css文件是否已加载。 -
享受吧!
数据库模式
许可
学术。