Developers

License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Release 1.1 - 20/01/2010

Release 1.0 - 17/01/2010

Release 0.9.2 - 04/01/2010

Release 0.5.0 - 29/11/2009

sfReview plugin

The sfReviewPlugin is a symfony plugin that allows users from sfGuardPlugin to leave reviews on different entities of an application.
We use it to place reviews of spanish politicians at http://voota.es, you are welcome to test it !

Upgrade

Please, use the sql script shipped with each new version to upgrade database:

[php]
all:
.settings:
i18n: on # Enable interface translation. Set to off if your application should not be translated.

Setup the module to be reviewed

Imagine that we have a module called 'Celebrity' and that our users are going to put reviews of each Celebrity we have in the database.
You should have a template in apps/frontend/modules/celebrity/templates/showSucces.php with information about a celebrity.
For now, let's say that we are showing only the name of the celebrity:

[php]
<?php echo $celeb->getName() ?>

First of all, we need to setup the view to use the plugin assets:
[php]
stylesheets: [main.css, /sfReviewPlugin/css/sf_review.css]
javascripts: [/sfReviewPlugin/js/sf_review.js, /sfJqueryReloadedPlugin/js/jquery-1.3.2.min.js, /sfJqueryReloadedPlugin/js/jquery-ui-1.7.2.custom.min.js]

Yes, jquery javascripts are also needed.
Ok, now we are going to fill the template with the necesary code to put a review on this subject: