예제 #1
0
 public function __construct(Menu $menuModel, MenuImage $menuImage, Category $category, Footer $footer, Components $components)
 {
     $this->data = [];
     $category = $category->getActive();
     $leftMenu = $menuModel->getLeftMenu();
     $rightMenu = $menuModel->getRightMenu();
     $MenuImage = $menuImage->getActive();
     $footer = $footer->getActive();
     $components = $components->getComponents();
     $bascedCount = Session::get('bascedCount');
     $this->data = ['leftMenu' => $leftMenu, 'rightMenu' => $rightMenu, 'menuImage' => $MenuImage, 'category' => $category, 'footer' => $footer[0], 'components' => $components[0], 'bascedCount' => $bascedCount];
 }
예제 #2
0
 public function __construct(Menu $modelMenu)
 {
     $this->data = [];
     $this->data['menu']['left'] = $modelMenu->getLeftMenu();
     $this->data['menu']['right'] = $modelMenu->getRightMenu();
 }