{"id":732,"date":"2011-07-31T17:48:13","date_gmt":"2011-07-31T23:48:13","guid":{"rendered":"http:\/\/www.mooreds.com\/wordpress\/?p=732"},"modified":"2015-06-02T07:06:31","modified_gmt":"2015-06-02T13:06:31","slug":"cakephp-rating-system","status":"publish","type":"post","link":"https:\/\/www.mooreds.com\/wordpress\/archives\/732","title":{"rendered":"CakePHP Rating System"},"content":{"rendered":"<p>I was thinking about adding a rating system (1-5 stars) to a cakephp site I run, and was looking forward to it.\u00a0 But then I remembered the cardinal rule of software development, especially in the internet age: check and see if someone has done it first.<\/p>\n<p>And <a href=\"http:\/\/bakery.cakephp.org\/articles\/view\/ajax-star-rating-plugin-1\">someone had<\/a>. <strong>Updated 6\/2\/2105: The previous link no longer works.\u00a0 If I had to, I&#8217;d try this plugin instead (but I haven&#8217;t).<\/strong><\/p>\n<p>The biggest issue I ran into is making sure that I added the javascript helper to every controller that uses the default layout.\u00a0 If I didn&#8217;t do that, I got a blank white screen.\u00a0 Other than that, smooth sailing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was thinking about adding a rating system (1-5 stars) to a cakephp site I run, and was looking forward to it.\u00a0 But then I remembered the cardinal rule of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[48,17],"tags":[],"class_list":["post-732","post","type-post","status-publish","format-standard","hentry","category-cakephp","category-php"],"_links":{"self":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=732"}],"version-history":[{"count":3,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/732\/revisions"}],"predecessor-version":[{"id":2063,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/732\/revisions\/2063"}],"wp:attachment":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}