Answer the question
In order to leave comments, you need to log in
How to find an error in PHP code?
To set up a slider on Bitrix, the following code must work.
But when I add it to the page I get a white screen
<?
$sliders = array();
for( $i= 0 ; $i <= 10 ; $i++ ) {
if (isset($APPLICATION->GetPageProperty("slider" . $i))) {
$sliders[$i]['slider'] = $APPLICATION->GetPageProperty("slider" . $i);
}
}
?>
Answer the question
In order to leave comments, you need to log in
You are not using isset correctly . She needs to slip a variable.
In general, it is better to implement a slider on the elements of the infoblock and the news.list component.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question