devtime / raffler-bundle
Raffler backbonejs bundle example.
Installs: 292
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 2
Open Issues: 0
Language:JavaScript
Type:symfony-bundle
Requires
- php: >=5.3.2
- devtime/backbone-bundle: *
- symfony/framework-bundle: >=2.1.1
- symfony/symfony: >=2.1.1
Requires (Dev)
- symfony/monolog-bundle: >=2.1.1
This package is not auto-updated.
Last update: 2024-11-23 15:34:45 UTC
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.