tomaskarlik / filelist
File browser for Nette
1.0.2
2017-09-22 00:34 UTC
Requires
- php: >=5.6
- latte/latte: ^2.4.0
- nette/application: ~2.4.0
- nette/di: ~2.4.0
- nette/utils: ^2.4.0
This package is not auto-updated.
Last update: 2024-10-19 06:19:29 UTC
README
Install
Download package
composer require tomaskarlik/filelist
Register extension in config.neon
extensions:
fileList: TomasKarlik\FileList\FileListControlExtension
Usage
<?php namespace App\Module\SomeModule\Presenters; use Nette\Application\UI\Presenter; use TomasKarlik\FileList\FileListControl; use TomasKarlik\FileList\FileListControlFactoryInterface; final class ListPresenter extends Presenter { private $factory; public function __construct(FileListControlFactoryInterface $factory) { $this->factory = $factory; } /** * @return FileListControl */ protected function createComponentLogFileList() { $someDir = __DIR__; return $this->factory->create($someDir); } }
{control logFileList}