Blame view

modules/default/controller/fotovideoController.php 779 Bytes
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
  <?php
  
  Class FotovideoController Extends baseController {
  public function preDispatch(){
  }
  
  public function index(){
   $menu = new Menu($this->lang);
   $row = $menu->view_params('fotovideo');
   $this->tpl->assign('menu_one',$row);
   $this->meta = array('title'=>$row['title'],'description'=>$row['description'],'keywords'=>$row['keywords']);
   
   $Fotovideo = new Fotovideo($this->lang);
   $this->tpl->assign('rubrics',$Fotovideo->getRubrics());
  }
  
  public function view($id)
  {
   $Fotovideo = new Fotovideo($this->lang);
   $row = $Fotovideo->getRubric($id);
   $this->tpl->assign('rubric',$row);
   $this->meta = array('title'=>$row['meta_title'],'description'=>$row['meta_description'],'keywords'=>$row['meta_keywords']);
  
   $this->tpl->assign('gallery',$Fotovideo->getGallery($id));
  }
  
  
  }
  ?>