dev-master
9999999-devFeedback bundle for Symfony 2
commercial
The Requires
by Ludovic Bouguerra
bundle feedback
Feedback bundle for Symfony 2
Improvements for futures revisions : - Unit tests - Embedded controller in twig views to simplify integration., (*1)
Get FeedbackBundle with composer Add this dependency "activpik/feedback-bundle": "dev-trunk", (*2)
On your AppKernel.php file add : new Activpik\Feedback\ActivpikFeedbackBundle(),, (*3)
On your config.yml file you can add
In services section :, (*4)
services: activpik.feedback_source: class: Activpik\FeedbackBundle\Vendor\RedmineFeedback\RedmineFeedbackSource arguments: ["https://urltoredmine/redmine/projects/myproject/issues.json", "ApiKey", "projectId", Priority]
and on your routing.yml file :, (*5)
ActivpikFeedbackBundle: resource: "@ActivpikFeedbackBundle/Controller/" type: annotation prefix: /
On the controllers using feedback badge :, (*6)
$feedbackType = new FeedbackType(); $data["feedback_type"] = $this->createForm($feedbackType)->createView();
use Activpik\FeedbackBundle\Form\FeedbackType;
On twig view Add :, (*7)
<link rel="stylesheet" href="{{ asset('bundles/activpikfeedback/css/feedback.css') }}" /> <script type="text/javascript" href="{{ asset('bundles/activpikfeedback/js/feedback.js') }}" ></script>
and, (*8)
{% include 'ActivpikFeedbackBundle:Feedback:badge.html.twig' %}
Feedback bundle for Symfony 2
commercial
bundle feedback