djordje / li3_filemanager
用于 Lithium PHP 框架的文件管理(文件浏览器)
dev-master
2013-03-24 11:13 UTC
Requires
- php: >=5.3
- composer/installers: dev-master
This package is not auto-updated.
Last update: 2024-09-28 14:06:52 UTC
README
[] (http://stillmaintained.com/djordje/li3_filemanager)
Lithium 框架的文件管理插件
安装
将代码检出至您的库目录之一
cd libraries
git clone git://github.com/djordje/li3_filemanager.git
在您的 /app/config/bootstrap/libraries.php 中包含库
Libraries::add('li3_filemanager');
在您的应用启动文件中需要包含 session.php
依赖项
您的应用应该有
jQuery, Twitter Bootstrap (CSS and JS)
为了构建 JS(li3_filemanager.min.js),您需要
node with this modules: grunt, uglify-js, jshint
用法
Go to your application URL /fm
By default you are browsing app/webroot/img
添加位置
Filesystem:
Location::add('default', array(
'adapter' => 'FileSystem',
'location' => LITHIUM_APP_PATH.'/webroot/files'
));
Filesystem with file URL:
Location::add('default', array(
'adapter' => 'Filesystem',
'location' => LITHIUM_APP_PATH.'/webroot/files'
'url' => 'http://example.com/files/'
));
FTP:
Locations::add('default', array(
'adapter' => 'FTP',
'host' => 'ftp.yourdomain.com',
'username' => 'username@yourdomain.com',
'password' => 'yourPassword'
));
测试
FileSystem adapter have location setup for testing
FTP adapter can be tested if you add FTP location config