toString()); exit(); }else { $this->conn = $conn; } $sql = "SELECT id, title FROM tf_article_category"; $result = $this->conn->query($sql); if (DB::isError($result) != true){ $this->categories = $result; } } public function getCategories(){ return $this->categories; } } ?>