breadcrumbs[count($uA->breadcrumbs) - 1][0]; $getProd = "select p.*, c.name as 'coll_name', i.preview, i.foto from products p left join collections c on c.ID = p.coll_id left join images i on i.prod_id = p.ID and i.`order` where p.ID = ".$prod_id." and p.published = 1"; $sqlProd = $db->query($getProd); $prodRow = $sqlProd->fetch_assoc(); $sqlProd->close(); $getConsist = "select * from product_consist where prod_id = ".$prod_id; $sqlConsist = $db->query($getConsist); $prodConsist = array(); while($cons = $sqlConsist->fetch_assoc()) { $prodConsist[] = $cons; } $sqlConsist->close(); $getImages = "select * from images where prod_id = ".$prod_id." order by `order`"; $sqlImages = $db->query($getImages); $prodImages = array(); while($imgs = $sqlImages->fetch_assoc()) { $prodImages[] = $imgs; } $sqlImages->close(); $getProdFromCollection = "select p.*, c.name as 'coll_name', i.preview, i.foto, i.preview_new from products p left join collections c on c.ID = p.coll_id left join images i on i.prod_id = p.ID and i.`order` = 1 where p.coll_id = " . $prodRow['coll_id'] . " and p.ID != " . $prodRow['ID'] . " and p.published = 1 order by p.sku"; $sqlProdFromCollection = $db->query($getProdFromCollection); $collProds = array(); while($collProd = $sqlProdFromCollection->fetch_assoc()) { $collProds[] = $collProd; } $smarty->assign('inner_template', 'product.tpl'); $smarty->assign('prodRow', $prodRow); $smarty->assign('collProds', $collProds); $smarty->assign('prodConsist', $prodConsist); $smarty->assign('prodImages', $prodImages); ?>
Fatal error: Uncaught SmartyException: Missing template name in /www/sites/www.royalaurel.ru/www/public/smarty/libs/sysplugins/smarty_internal_template.php:639 Stack trace: #0 /www/sites/www.royalaurel.ru/www/public/smarty/libs/sysplugins/smarty_internal_templatebase.php(117): Smarty_Internal_Template->__get('source') #1 /www/sites/www.royalaurel.ru/www/public/smarty/libs/sysplugins/smarty_internal_template.php(286): Smarty_Internal_TemplateBase->fetch(Object(Smarty_Internal_Template), NULL, NULL, NULL, false, false, true) #2 /www/sites/www.royalaurel.ru/www/public/smarty/templates_c/2469a6956c568a71a3a316589e5f141b27845250.file.index.tpl.php(69): Smarty_Internal_Template->getSubTemplate(NULL, NULL, NULL, NULL, NULL, Array, 0) #3 /www/sites/www.royalaurel.ru/www/public/smarty/libs/sysplugins/smarty_internal_templatebase.php(180): content_5d13150c4a73e5_71678782(Object(Smarty_Internal_Template)) #4 /www/sites/www.royalaurel.ru/www/public/smarty/libs/sysplugins/smarty_internal_templatebase.php(374): Smarty_Internal_Template in /www/sites/www.royalaurel.ru/www/public/smarty/libs/sysplugins/smarty_internal_template.php on line 639