public function executeArticles($request) { $this->setResponseFormat(array('json')); $this->data = EntityApi::getArticles($this->entity['id']); return $this->renderText(json_encode($this->data)); }