Blame view

modules/default/controller/indexController.php 1.13 KB
8d65d0ce   andryeyev   init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
  <?php
  
  Class IndexController Extends baseController {
  public function preDispatch(){
  }
  
  public function index(){
   $menu = new Menu($this->lang);
   $row = $menu->view_params('');
   $this->tpl->assign('menu_one',$row);
   $this->meta = array('title'=>$row['title'],'description'=>$row['description'],'keywords'=>$row['keywords']);
   
   $filters = new Filters($this->lang);
   $this->tpl->assign('filters',$filters->getBeginFilters());
   
  		$banners = new Banners($this->lang);
  		$this->tpl->assign('banners_2',$banners->viewBannerBlock('begin',1,2)); 
  		$this->tpl->assign('banners_3',$banners->viewBannerBlock('begin',1,3));
  
    $info = new Info($this->lang);
    $row = $info->view('home');
    $this->tpl->assign('text',$row);		
  }
  
  public function view($prefix)
  {
   $menu = new Menu($this->lang);
   $row = $menu->view_params('');
   $this->tpl->assign('menu_one',$row);
   $this->meta = array('title'=>$row['title'],'description'=>$row['description'],'keywords'=>$row['keywords']);
  
    $info = new Info($this->lang);
    $row = $info->view($prefix);
    $this->tpl->assign('text',$row);
  
    $news = new News($this->lang);
    $this->tpl->assign('news_last',$news->getLastNews());
  }
  
  
  }
  ?>