'; } } ?>
'.$file['name'].'In this example, we first specify the directory path as 'documents/' and then use CFile::MakeFileArray to get an array of all the files in that directory. We then loop through each file in the array and check if it is a PDF file using CFile::GetFileExtension() function. If it is a PDF file, we output an HTML anchor tag with the file's source and name. CFile MakeFileArray is a function provided by the Bitrix Framework package library. It is commonly used in Bitrix-powered websites to manage files and directories.
'; } } ?>