damianociarla / DCSRatingBundle

Rating system for Symfony application
MIT License
23 stars 19 forks source link

Update RatingController.php #6

Closed sorinsugar closed 9 years ago

sorinsugar commented 9 years ago

This action expects one parameter but from twig you are sending 4 parameters as per your twig file control.html/twig {{ render(controller('DCSRatingBundle:Rating:control', {'id' : id, 'permalink' : permalink, 'securityRole' : securityRole, 'params' : params|default({})})) }}

I would suggest adding these params in the controller also. This will make things consistent with the parameters sent to the controller from the template.

damianociarla commented 9 years ago

Excuse the delay in response. I did not add the parameters in the signature because I don't need in controller flow and find them still in the Request object