PHP code example of nattreid / file-manager
1. Go to this page and download the library: Download nattreid/file-manager library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nattreid / file-manager example snippets
/** @var \NAttreid\FileManager\IFileManagerFactory @inject */
public $fileManagerFactory;
function createComponentList(){
$basePath = 'korenovyAdresar';
$manager = $this->fileManagerFactory->create($basePath);
$manager->editable(true); // povolí editaci, mazání a přejmenování souborů
// pro zmenu jazyka
$manager->getTranslator()->setLang('cs');
return $manager;
}