read($id); $inicio = 0; //$max = 21; $max = 0; $children = $bo_cat->getItems($id, 0); if (sizeof($children) > 0) { $productos = $bo_prod->findProductsAndLines($id, $inicio, $max); } else { $productos = $bo_prod->getProductsByCat($id, $inicio, $max); } $smarty = new SmartyMartina; // variables de traducción $smarty->i18n_load($locale); $smarty->assign("lang", $idioma); $smarty->assign("events", Array("submenuEvents", "catalogEvents")); $smarty->assign("tit_pag", $categoria->getTitle($idioma)); $smarty->assign("nom_categoria", $categoria->getTitle($idioma)); $smarty->assign("id_lang", $idioma); $smarty->assign("id_parent", $categoria->getId_parent()); //$smarty->assign("nom_parent", $nom_parent); $smarty->assign("productos", $productos); $smarty->assign("num_cols", 4); $smarty->assign("content", "categoria.tpl"); $smarty->display('base.tpl'); ?>