dev-master
9999999-devExtension to use elFinder 1.x file manager in Yii2 application
MIT
The Requires
by Quinn Nguyen
extension yii2 widget tinymce elfinder file manager
Extension to use elFinder 1.x file manager in Yii2 application
Extension to simplify adding elFinder to Yii2 project., (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist vanquybn/yii2-elfinder "*@dev"
, (*4)
or add, (*5)
"vanquybn/yii2-elfinder": "*@dev"
, (*6)
to the require section of your composer.json
file., (*7)
namespace backend\controllers; use Yii; use yii\web\Controller; use vanquybn\yii2\elfinder\ConnectorAction; class ElFinderController extends Controller { public function actions() { return [ 'connector' => array( 'class' => ConnectorAction::className(), 'settings' => array( 'root' => Yii::getAlias('@webroot') . '/uploads/', 'URL' => Yii::getAlias('@web') . '/uploads/', 'rootAlias' => 'Home', 'mimeDetect' => 'none' ) ), ]; } }
widget to choose file on server using ElFinder pop-up, (*8)
echo $form->field($model, 'filePath')->widget( ElFinderInput::className(), ['connectorRoute' => 'el-finder/connector',] )
echo ElFinderWidget::widget( ['connectorRoute' => 'el-finder/connector',] )
Widgets supports intergation with TinyMce wysiwyg editor For more details see tinymce extension https://github.com/vanquybn/yii2-tinymce, (*9)
Extension to use elFinder 1.x file manager in Yii2 application
MIT
extension yii2 widget tinymce elfinder file manager