private static function editTopic() { $model = new TopicModel(); $model->id = $_GET['id']; $model->body = $_POST['topicBody']; $model->editTopicBody(); }
public static function checkButton() { if (isset($_REQUEST['delete'])) { TopicModel::deleteTopics(); } }