public function getLatestArticles() { $this->mArticles = Product::GetLatestArticles(); echo json_encode($this->mArticles); }