We're going to create three controllers for this application. These are as follows:
discussions.php
: This fetches discussions from thediscussions
table in the database and allows the user to create a new discussioncomments.php
: This fetches comments from thecomments
table in the database and allows the user to join a discussion by adding a comment to a discussion forumadmin.php
: This contains basic admin functions, login functionalities, and moderation options