forci/banner-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

forci/banner-bundle

Composer 安装命令:

composer require forci/banner-bundle

包简介

A simple banner manager Symfony3/4

README 文档

README

Usage

Add this bundle to your AppKernel.php new \Forci\Bundle\BannerBundle\ForciBannerBundle()

Execute app/console doctrine:schema:update --dump-sql and after verifying what is being executed, execute again with --force. Alternatively, use doctrine migrations via the DoctrineMigrations bundle.

Once this has been done, you can start using the bundle. Simply register it in your routing.yml in a protected area such as admin, like so:

forci_banner:
    resource: "@ForciBannerBundle/Resources/config/routing.yml"
    prefix: /banners

You can create a link to the builder using {{ path('forci_banner_dashboard') }}, or embed it into your admin UI via an iframe like so <iframe src="{{ path('forci_banner_dashboard') }}" style="border: 0; width: 100%; height: 100%;"></iframe>

The User Interface is pretty self-explanatory. You create banners and positions. Banners contain the JavaScript or HTML code. This can also be used for tracking or anything external you would like to add to your website via a UI in your admin section without thinking too much about its implementation. Positions are placed in your code on your pages, like this {{ 'YourPositionName'|banner }} (There is also a twig function) You can also print a link to the same page you're at, but with positions in debug mode, but only if your user has the ROLE_ADMIN role using {{ showBannerPositionsUrl() }} If a position is lacking a banner, is inactive, the banner is inactive, or any other error, if you have ROLE_ADMIN, you will get an error message

Caching

If you need cache: Alias your own Psr\Cache\CacheItemPoolInterface to forci_banner.cache, for example:

<service id="forci_banner.cache" alias="app.cache" /> where the app.cache service is an instance of Psr\Cache\CacheItemPoolInterface

TODO

  • Tests!

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: CSS

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2018-01-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固