This is a demo Symfony2 bundle including a backbone.js Raffler app created with DevtimeBackboneBundle
JavaScript PHP HTML
Switch branches/tags
Nothing to show
Permalink
Failed to load latest commit information.
Controller Allow reading csv file | Fix reset bug Nov 11, 2016
DependencyInjection First commit Oct 27, 2012
Resources
Tests Add back monolog Apr 21, 2013
.travis.yml Add travis yml Mar 28, 2013
DevtimeRafflerBundle.php First commit Oct 27, 2012
README.md Updated README Mar 29, 2013
composer.json Add back monolog Apr 21, 2013
phpunit.xml.dist Add AppKernel for Functional tests Apr 21, 2013

README.md

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.