dev-master
9999999-devBundle to create and manage multiples quiz
MIT
The Requires
- php >=5.3.2
- symfony/framework-bundle ~2.1|~3.0
by Ines Mokni
response quiz question
Wallogit.com
2017 © Pedro PelĂĄez
Bundle to create and manage multiples quiz
This bundle aims to create and manage multiple quiz., (*1)
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
Bundle to create and manage multiples quiz
MIT
response quiz question