PHP code example of de-luxis / yii2-simple-filemanager
1. Go to this page and download the library: Download de-luxis/yii2-simple-filemanager 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/ */
de-luxis / yii2-simple-filemanager example snippets
public function init()
{
parent::init();
$this->modules = [
'filemanager' => [
'class' => 'DeLuxis\Yii2SimpleFilemanager\SimpleFilemanagerModule',
'as access' => [
'class' => '\yii\filters\AccessControl',
'rules' => [
[
'allow' => true,
'roles' => ['@'],
],
]
]
]
];
}