Esempio n. 1
0
 public function init()
 {
     $templateMapper = new Cloud_Model_Template_CloudTemplateMapper();
     $themeMapper = new Cloud_Model_Theme_CloudThemeMapper();
     $dirTemplate = $templateMapper->getTemplateDefault(3);
     $dirTheme = $themeMapper->checkThemeNews();
     $this->config = $this->createLayout($dirTemplate, $dirTheme);
     $this->widgetMapper = new Cloud_Model_Widget_CloudWidgetMapper();
     $this->categoryMapper = new Cloud_Model_ContentCategory_CloudContentCategoryMapper();
     $this->newsMapper = new Cloud_Model_Article_CloudArticleMapper();
     $this->request = $this->getRequest();
     $this->view->assign(array('categoryMapper' => $this->categoryMapper, 'newsMapper' => $this->newsMapper, 'aliasP' => $this->request->getParam('aliasP'), 'menuItemMapper' => new Cloud_Model_MenuItem_CloudMenuItemMapper()));
 }