CakePHP Comment Plugin
Monday, September 14th, 2009The 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…). Here is the solution we came up with that worked very well:
(more…)