fotovideoController.php
779 Bytes
<?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));
}
}
?>