A
A
ayapergenov2016-08-16 09:35:18
PHP
ayapergenov, 2016-08-16 09:35:18

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

1 answer(s)
O
Oleg Mifle, 2016-08-16
@ayapergenov

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 question

Ask a Question

731 491 924 answers to any question