PHP code example of geoffry304 / yii2-enveditor
1. Go to this page and download the library: Download geoffry304/yii2-enveditor 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/ */
geoffry304 / yii2-enveditor example snippets
// app/config/web.php
return [
'components' => [
'env' => [
'class' => '\geoffry304\enveditor\components\EnvComponent',
'autoBackup' => true,
'backupPath' => "backups",
],
],
'modules' => [
'enveditor' => [
'class' => '\geoffry304\enveditor\Module',
'allowedIds' => "1,2,3"
],
],
];