okulbilisim/feedback-bundle

This package is abandoned and no longer maintained. The author suggests using the bulutyazilim/feedback-bundle package instead.

Symfony bundle for user feedback

Installs: 1 017

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 8

Forks: 4

Type:project

2.0.3 2016-10-13 11:21 UTC

This package is not auto-updated.

Last update: 2019-02-20 18:18:46 UTC


README

FeedbackBundle for Symfony 2

image

##Installation

###Step 1

add

composer require --dev "bulutyazilim/feedback-bundle":"dev-master"

to require block of your composer.json

###Step 2

add this line to your app/AppKernel.php file

<?php

// app/AppKernel.php

// ...

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new BulutYazilim\FeedbackBundle\BulutYazilimFeedbackBundle(),
        );

        // ...
    }

    // ...
}

##Step 3

import routing

feedback:
    resource: "@BulutYazilimFeedbackBundle/Resources/config/routing.yml"
    prefix:   /

Step 4

add configurations to app/config.yml

# Twig Configuration    
twig:
    globals:
        admin_base_view: '::ojs_base.html.twig'

Step 5

add style and css files to your layout.

- @BulutYazilimFeedbackBundle/Resources/public/js/feedback.js
- @BulutYazilimFeedbackBundle/Resources/public/js/admin.js
- @BulutYazilimFeedbackBundle/Resources/public/css/feedback.css

Step 6

add parameters.yml following lines

feedback_categories:
        -
            id: 1
            name: "General"
        -
            id: 2
            name: "Bug Report"
        -
            id: 3
            name: "Idea"

step 7

add following before </body> in your twig file

{{ feedback_widget()|raw }}