heimrichhannot / contao-backend_admin_menu
扩展 contao 后端,包含有用的快捷菜单。
1.0.12
2017-05-09 12:57 UTC
Requires
- php: ~5.4 || ~7.0
- bariew/phpquery: >=1.0.2
- contao/core-bundle: ^3.5.1 || ~4.1
- heimrichhannot/contao-haste_plus: >=1.3.47
README
扩展 contao 后端,包含有用的快捷菜单。
预览
特性
当前可用的操作
- 重新生成内部缓存
- 打开 composer
- 打开数据库更新页面
- 打开自动加载创建器
技术说明
添加新操作
只需向 $GLOBALS['TL_CONFIG']['backendAdminMenuActions']
中添加新条目即可。
$GLOBALS['TL_CONFIG']['backendAdminMenuActions']['generate_internal_cache'] = array(
// either use a direct url...
'href' => 'contao/main.php?do=composer',
// ... or a callback as href
'href' => array('Some\Namespace\SomeClass', 'someMethod'),
'icon' => 'system/modules/some/icon.png'
);