Blame view

modules/default/controller/shopsController.php 822 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
30
31
  <?php
  
  Class ShopsController Extends baseController {
  
  protected $_navig = array('name'=>"Новости");
  
  public function index($brend_translit = null)
  {
   $menu = new Menu($this->lang);
   $row = $menu->view_params('shops');
   $this->tpl->assign('menu_one',$row);
   $this->meta = array('title'=>$row['title'],'description'=>$row['description'],'keywords'=>$row['keywords'],'about'=>$row['about']);
  
   if($brend_translit != null){
  	$brends = new Brends($this->lang);
  	$brend_id = $brends->getTranslitStr($brend_translit);
  	$this->tpl->assign("brend_id",$brend_id);
  	$this->tpl->assign("brend_translit",$brend_translit);
   }
  
   $shops = new Shops($this->lang);
   $res = $shops->getShops($brend_id,$this->getParam);
   $this->tpl->assign("shops",$res);
   $res = $shops->getCity($brend_id);
   $this->tpl->assign("city",$res);
  }
  
  
  
  }
  ?>