mohammedeisa/rating-bundle
最新稳定版本:2.0
Composer 安装命令:
composer require mohammedeisa/rating-bundle
包简介
Meisa Rating bundle
README 文档
README
About the bundle
MEisaRatingBundle embeds a rating stars into any part of your application using just one line of code. Installation:
run this command:
$ composer require mohammedeisa/rating-bundle
or add this line to your composer.json
"mohammedeisa/rating-bundle": "~2.0"
Add the bundle to your registered bundles:
new Meisa\RatingBundle\MeisaRatingBundle()
Include these files into your template
'<link href="{{ asset('css/bootstrap.min.css')}}" rel="stylesheet">'
<link href="{{asset('css/font-awesome.min.css')}}" rel="stylesheet">
<script src="{{ asset('js/jquery.js') }}"></script>
<script src="{{ asset('js/bootstrap.min.js') }}"></script>
<link rel="stylesheet" href="{{ asset('bundles/meisarating/css/rating.css') }}"/>
*<script type="text/javascript" src="{{ asset('bundles/meisarating/js/rating.js') }}"></script>
*<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}" type="text/javascript" ></script>
*<script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}" type="text/javascript" ></script>
Import bundle configurations:
- { resource: @MeisaRatingBundle/Resources/config/config.yml }
Enable the bundle routing:
meisa_rating:
resource: "@MeisaRatingBundle/Controller/"
type: annotation
prefix: /
Usage:
{{ "rating_1"|show_rating|raw }}
change "rating_1" so that it should be unique over your application.
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-05