Comments plugin is a universal comment system that can be attached to any controller with a few lines of code. The comments plugin will allow you to make any kind of data comment-able.
In today’s article we are going to create a very basic blog that allows people to create a post and posts comments on that post via AJAX. We are going to keep it extremely basic and just focus on that actual AJAX functionality.
The goal of every programmer is to write as little code as possible. It can only be achieved by re-using code that you already wrote. That is why we all use CakePHP in the first place right? Fortunately, cake allows us to create plug-ins that we could just drop in into our projects and be done with it.
For quite a few of our projects, especially social applications, we had to add commenting. In addition, we typically had to allow users to comment on everything (photos, posts, news, articles, etc…).