Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 1.44 KB

README.md

File metadata and controls

61 lines (40 loc) · 1.44 KB

Yii2 Filemanager Widgets

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"}) }}