O'Reilly logo

Learning Joomla! 1.5 Extension Development by Joseph L. LeBlanc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing comments

Back in Chapter 4, we added a feature to the site which allows visitors to add their comments to reviews on the site. Unfortunately, websites offering comments are frequently abused. We need to build a backend manager where comments can be removed or edited.

Before we start adding models, views, and controller methods, let's stop to think about how we want to organize the new code. At the moment, the controller handles everything related to managing the records in the jos_reviews table. We could add methods to the current controller for managing the jos_reviews_comments table as well.

This approach would require us to come up with task names that would not conflict with the existing ones; for instance, we would have to add saveComment() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required