blackknight467 / starratingbundle Goto Github PK
View Code? Open in Web Editor NEWstar rating bundle for symfony
License: MIT License
star rating bundle for symfony
License: MIT License
Hello. I like this bundle, was easy to use(instructions on getting font awesome too would have helped but fine)
I have deployed my form with the stars, but the form label is appearing twice for some reason. I am using a loop to render my form that looks kind of like
{{form.label}}{{form.form}}
Not sure why the label is being duplicated. The rest of the form appears normally
Thank you
Hi, i'm trying to use the bundle with symfony 3 but forms have changed.
<?php
// ...
$builder->add('rating', 'rating', array(
'label' => 'Rating'
));
// ...
Thanks.
Hi,
When I install the bundle with composer, it is installed under vendor directory but the directory web/bundles/starrating/ doesn't exist, when I add it manually and I try to execute I get the error
in AppKernel.php
and it is caused by this declaration: new blackknight467\StarRatingBundle\StarRatingBundle()
can You tell me how to fix this ?
Also I would like to uninstall the bundle and reinstall it, as I tried many manipulations, should I remove it from the vendor directory?
Thanks
please it is possible to display stars that have already been rated on webpage
Im tryng to use this bundle with a Symfony 2 app but i got an error, is only for Symfony 3 now?
Thanks!
Hi,
We are migrating to Symfony 5.3 and i would like to know if this bundle supports this.
Hi!
I am trying to use your bundle and I found that I cannot make it work in the form.
I added in my form builder this line
->add('rating', 'rating', array('label' => 'Rating'));
and now I can see this field:
But it is not working as expected when clicking at some star. When I do mouseout the whole stars get deactivated again and the input field
still shows 0 as value.
May I be doing something wrong?
Another topic is if you made or thought on some way to make this work in ajax, anyway once I can make work the normal functionality I can implement on myself the ajax sendinf of the rating.
Thanks and best regars!
Greetings,
I am actually using your bundle, and it is quite handy !
One problem thou : stars cannot be on readonly.
In fact, I have tried :
$builder->add("rating", "rating", array(
"label" => 'Rating',
"read_only" => true
))
Field is on readonly attribute :
readonly="readonly"
but I can still modify stars rating.
Is it a solution ?
Kind Regards,
This bundle will trigger an exception Symfony 4.
To solve this, change the line with:
$resources = array_merge(array('@StarRatingBundle/rating.html.twig'), $resources);
Then add and alias to /config/packages/twig.yaml:
twig:
paths:
'%kernel.project_dir%/templates': templates
'%kernel.project_dir%/vendor/blackknight467/star-rating-bundle/blackknight467/StarRatingBundle/Resources/views': StarRatingBundle
Hi.
It is possible to display in a Twig template a half star score?
An exception has been thrown during the rendering of a template ("Notice: Object of class Symfony\Component\Form\FormView could not be converted to int")
Hi !
I'm using your bundle, and it is exactly what I need !
Working perfectly with Twig
My problem is that I now use handlebarsjs template file for a specific functionality in my symfony app.
Is there a equivalent of {{ someInteger|rating }} for handlebars ??
Thanks
Hi,
I have successfully use your bundle and I want to use rate value from your bundle and save it in a field of my table in the db through my entity as an integer.
So how can I save the rating in that field?
Thanks in advanced.
thank you for this bundle, however I have problem running it, what could have gone wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.