Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

81 lines (54 sloc) 2.005 kb

Raffler Bundle Build Status

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.

Jump to Line
Something went wrong with that request. Please try again.