/** * @fn software_comment_list * @short Action method to show the list of software comments. */ public function software_comment_list() { $conn = Db::get_connection(); if (empty($_REQUEST['id'])) { $this->redirect_to(array('action' => 'software_list')); } $comment = new SoftwareComment(); $this->comments = $comment->find_all(array('where_clause' => "`software_id` = '{$conn->escape($_REQUEST['id'])}'")); Db::close_connection($conn); }