sturple / guest-survey-bundle
Bundle to add a Guest Survey tool
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 3
Language:JavaScript
Type:symfony-bundle
This package is not auto-updated.
Last update: 2021-06-09 10:15:53 UTC
README
Installation
** Method 1 Composer **
{ "require": { "sturple/guest-survey-bundle": "dev-master" } }
and then execute
$ composer update
** Method 2 Composer **
composer.phar require sturple/guest-survey-bundle:dev-master
Configuration
Add to app/AppKernel.php
file
class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // .. other bundles new Fgms\Bundle\SurveyBundle\FgmsSurveyBundle(), ); } }
Add to routes.yml
fgms_survey: resource: "@FgmsSurveyBundle/Resources/config/routing.yml" prefix: /
Add to config.yml
doctrine: orm: dql: numeric_functions: Rand: Fgms\Bundle\SurveyBundle\Utility\DoctrineRand
**Create survey.yml
in your config directory
images_path: /web/assets/images/ property_config_dir: "/../../config/property/" email: from: address: 'guest.response@example.com' name: Guest Feedback
Testimonials Widget
To place a testimonials widget on a page simply add:
<script type="text/javascript" src="/<group>/<slug>/testimonials/<order>/<count>"></script>
to your page's HTML. The <script>
tag will be replaced with a testimonials widget on page load.
The order
parameter may be either random
(which selects count
testimonials randomly) or latest
(which displays the count
latest testimonials in the order in which they were added).