dmstr/yii2-filemanager-widgets

A very smart filemanager to manage your files in the browser developed in AngularJS with Material-Design

Installs: 24 520

Dependents: 0

Suggesters: 1

Security: 0

Stars: 4

Watchers: 9

Forks: 3

Open Issues: 0

Type:yii2-extension

1.1.0-rc7 2020-09-11 08:58 UTC

README

Latest Stable Version Total Downloads License

A very smart filemanager to manage your files in the browser developed in AngularJS with Material-Design

Installation

Global ENV variables

Variable Value
AFM_TITLE 'My Filemanager'
AFM_HANDLER_URL '/filefly/api'
AFM_FILESYSTEM_BASE_PATH '/app/src/_storage'

Filemanager widget

General usage

echo \hrzg\filemanager\widgets\FileManagerWidget::widget();

Use in TWIG templates:

{{ use ('hrzg/filemanager/widgets') }}

{{ file_manager_widget_widget() }}

Input widget

General usage

echo \hrzg\filemanager\widgets\FileManagerInputWidget::widget(['name' => 'myInputWidget']);

Use it with an ActiveForm

echo $form->field($model, 'image')->widget('\hrzg\filemanager\widgets\FileManagerInputWidget');

Use in TWIG templates:

{{ use ('hrzg/filemanager/widgets') }}

{{ file_manager_input_widget_widget({"name" : "myInputWidget"}) }}