2017 © Pedro PelĂĄez
 

library back-bundle

Bundle to create and manage multiples quiz

image

pxquiz/back-bundle

Bundle to create and manage multiples quiz

  • Friday, December 2, 2016
  • by inesmokni
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

QUIZBackBundle

This bundle aims to create and manage multiple quiz., (*1)

Features

  • Create many quiz at the time and makes only one active.
  • A quiz can have multiple categories. Each category have many pages and each page have many questions.
  • Each component can be confiured by simple parameters.
  • Clone existing quiz
  • A question can be conditionned by one or many other question's responses

Install QUIZBackBundle

1/ Add require to your composer.json and update:, (*2)

"pxquiz/back-bundle" : "dev-master"

2/ Update your AppKernel.php:, (*3)

new QUIZ\BackBundle\QUIZBackBundle()

3/ Update your assets :, (*4)

php app/console assets:install

4/ Add the custom themes uder Twig in your config.yml :, (*5)

twig:
  form_themes:
    - 'QUIZBackBundle:Form:_parent_view_type-prototype.html.twig'
    - 'QUIZBackBundle:Form:_quiz_response_type-prototype.html.twig'

5/ Include the bundle routes in routing.yml:, (*6)

quiz_back:
  resource: "../../vendor/pxquiz/back-bundle/Controller/"
  type:     annotation
  prefix:   /

6/ Use a bundle wich extends QUIZBackBundle:, (*7)

  public function getParent()
  {
    return 'QUIZBackBundle';
  }

7/ Update your database:, (*8)

php app/console doctrine:schema:update --force 

8/ Type this route and follow the instructions: http://YOUR_HOST/quiz/, (*9)

9/ In order to be able to configure your Quiz, use this pattern in config.yml :, (*10)

quiz_back:
      categories: 
        C01: Catéagorie 1
        C02: Catéagorie 2
        C03: Catéagorie 3
      question_type:
        0: Texte libre
        1: Radio
        2: Checkbox
        3: Combobox
      question_has_score : false
      question_has_condition: false
      question_has_help: false
      extra_response: false

The Versions

02/12 2016

dev-master

9999999-dev

Bundle to create and manage multiples quiz

  Sources   Download

MIT

The Requires

 

by Ines Mokni

response quiz question