sturple/guest-survey-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Bundle to add a Guest Survey tool

Installs: 21

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 3

Language:JavaScript

Type:symfony-bundle

0.1.0 2016-06-14 20:52 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).