public function getCategories() { $this->mCategories = Journal::GetCategories(); echo json_encode($this->mCategories); }