I want to insert a rating star to my page using CakePHP. The path to the image is in javascript as below. But, the image didn't show.
$.fn.jRating = function(op) {
var defaults = {
/** String vars **/
bigStarsPath : '../img/icons/stars.png' , // path of the icon stars.png
smallStarsPath : '../img/icons/small.png', // path of the icon small.png
phpPath : 'app/jRating.php', // path of the php file jRating.php
type : 'big', // can be set to 'small' or 'big'
I already try using <?php echo $this->webroot; ?>img/icons/stars.png
. but no luck. can anyone help me.