包括我在内的很多都吐槽cmf后台UI不好看
在此撸一套模板出来,各位看客老爷发现问题可以联系我!
同时也祝福cmf越来越好!
把文件放在 public/themes
随后 换一下config文件的
'cmf_admin_default_theme' => 'admin_adminlte',
改成如上
清理缓存用ajax进行!
找到 app\admin\controller\SettingController 的 clearCache方法
修改
/** * 清除缓存 * @adminMenu( * 'name' => '清除缓存', * 'parent' => 'default', * 'display'=> false, * 'hasView'=> true, * 'order' => 10000, * 'icon' => '', * 'remark' => '清除缓存', * 'param' => '' * ) */ public function clearCache() { $content = hook_one('admin_setting_clear_cache_view'); if (!empty($content)) { return $content; } if ($this->request->isAjax()) { cmf_clear_cache(); $this->success('清理缓存成功!'); } }
这套模板 我自行更换了弹出层 ! 请开发者自行选择!!!
ThinkCMF模板插件交流群:550851374