Beispiel #1
0
 public function index()
 {
     $twig = Config::getTwig();
     //-- Get Distrubuter  -- //
     $distrName = Request::_get('id');
     $categoryList = Category::getCategoryTree()->content;
     //-- Get Main Categories -- //
     $maincategoryList = $categoryList->childList;
     //-- Define Rendered Result -- //
     $result = array('categoryList' => $maincategoryList, 'distrName' => $distrName);
     //-- Render Result -- //
     return $twig->render('home.html', $result);
 }