devtime/raffler-bundle
最新稳定版本:v1.0.0
Composer 安装命令:
composer require devtime/raffler-bundle
包简介
Raffler backbonejs bundle example.
关键字:
README 文档
README
This bundle is a simple backbone.js + Symfony2 app created using https://github.com/gigo6000/DevtimeBackboneBundle, it also uses Twitter bootstrap.
It allows you to get a ramdom winner from a list of names.
Follow @gigo6000 on Twitter. Tweet any questions or suggestions you have about the project.
What you need
This bundle requires Symfony 2.1.1 or greater (it probably works in older versions but not tested)
Installation
Step 1: Download DevtimeRafflerBundle using composer
Add DevtimeRafflerBundle to your composer.json:
{ "require": { "devtime/raffler-bundle": "dev-master" } }
Now tell *composer to download the bundle by running the command:
$ php composer.phar update devtime/raffler-bundle
Composer will install the bundle to your project's vendor/devtime directory.
- Note: If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:
curl -s https://getcomposer.org/installer | php
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Devtime\Bundle\RafflerBundle\DevtimeRafflerBundle(), ); }
Step 2: Import routes
Import the bundle routes by adding the following code to your application’s routing file:
# app/config/routing.yml devtime_raffler: resource: "@DevtimeRafflerBundle/Controller/" type: annotation prefix: /
Step 3: Publish the bundle assets
After this you need to install (publish) your assets to the web dir.
php app/console assets:install
At this point you should be able to see the app: http://yoursite.local/raffler.
统计信息
- 总下载量: 295
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-12-17