Ejemplo n.º 1
0
 private function initBasePages($languages)
 {
     $templates = $this->theme->getTemplates();
     foreach ($languages as $language) {
         $blocks = $this->blockRepository->retrieveContents(array(1, $language->getId()), 1);
         foreach ($templates as $template) {
             $this->pageBlocks->setBlocks($blocks);
             $this->pages['base'][] = $this->initPageTree($language, null, $template);
         }
     }
 }