siezi/phile-admin
最新稳定版本:1.0.1
Composer 安装命令:
composer require siezi/phile-admin
包简介
Extendable Admin Backend Framework for PhileCMS
README 文档
README
What
A small admin backend framework for PhileCMS based on Silex (symfony components) and Bootstrap. Takes care of the backend boilerplate (login/logout, templating, localization) and makes it easy to develop admin plugins.
Find plugins using it on Phile’s plugin page.
Installation
1.1 Installation (composer)
"require": { "siezi/phile-admin": "*" }
1.2 Installation (Download)
Download the latest archive from the release page into plugins/siezi/phileAdmin.
2. Activation
After you have installed the plugin you activate it by adding the following line to your config.php file:
$config['plugins']['siezi\\phileAdmin'] = ['active' => true];
The default backend URL is http://…/<phile-root>/backend/
3. Start
To login you have to chose an admin password, create an hash for it (see login page) and put it into the plugin config.
$config['plugins']['siezi\\phileAdmin']['admin'] = [ 'name' => '<name>', 'password' => '<password hash>' ];
4. Config
See config.php.
Plugin Development
The backend is essentially a Silex app and a admin-plugin repository containing admin-plugins. On a callback in a standard Phile Plugin-class you create a new admin-plugin, configure it and add it to the repository. Then you create Silex routes and controllers (extending AdminController).
See the cache plugin for a simple plugin implementation.
Enable the debug mode in the config.php when you develop (disable template cache, …).
统计信息
- 总下载量: 195
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-19