PHP code example of andrewdanilov / yii2-input-images

1. Go to this page and download the library: Download andrewdanilov/yii2-input-images 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/ */

    

andrewdanilov / yii2-input-images example snippets


return [
	// ...
	'controllerMap' => [
		'upload' => [
			'class' => 'andrewdanilov\InputImages\UploadController',
			'path' => 'upload/post/images', // path to upload images, default is 'upload/images'
		],
	],
];

return [
	// ...
	'controllerMap' => [
		'elfinder' => [
			'class' => 'mihaildev\elfinder\Controller',
			'access' => ['admin'],
			'roots' => [
				[
					'baseUrl' => '',
					'basePath' => '@frontend/web',
					'path' => 'upload/images',
					'name' => 'Изображения',
				],
			],
		],
	],
];
html

use andrewdanilov\InputImages\InputImagesFrontend;
html

use andrewdanilov\InputImages\InputImages;