Best Answer Kess , 08 January 2015 - 10:27
Добрый день,
попробуйте так:
<?php
if ($itemId == 101) {
$tmplParts = array(
'glavimg.php',
'glavimg2.php',
'glavimg3.php'
);
$tmplPart = $tmplParts[array_rand($tmplParts)];
echo $tpl->partial($tmplPart);
}
?>
Go to the full post


This topic is locked











