shopsController.php 822 Bytes
<?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);
}



}
?>