Ejemplo n.º 1
0
 public function homeAction()
 {
     $api = $this->get('dlin.zendesk')->getApi();
     $categoriesClient = new CategoryClient($api);
     $categoriesResult = $categoriesClient->getAll();
     $sectionsClient = new SectionClient($api);
     $sectionsResult = $sectionsClient->getAll();
     $articleClient = new ArticleClient($api);
     $articleResult = $articleClient->getAll();
     return $this->render('DlinZendeskBundle:Home:home.html.twig', array('categories' => $categoriesResult->getItems(), 'sections' => $sectionsResult->getItems(), 'articles' => $articleResult->getItems()));
 }