www.gusucode.com > CoreThink 轻量级WEB开发框架 v1.3.0源码程序 > code/Application/Admin/Controller/IndexController.class.php
<?php // +---------------------------------------------------------------------- // | OpenCMF [ Simple Efficient Excellent ] // +---------------------------------------------------------------------- // | Copyright (c) 2014 http://www.opencmf.cn All rights reserved. // +---------------------------------------------------------------------- // | Author: jry <598821125@qq.com> // +---------------------------------------------------------------------- namespace Admin\Controller; /** * 后台默认控制器 * @author jry <598821125@qq.com> */ class IndexController extends AdminController { /** * 默认方法 * @author jry <598821125@qq.com> */ public function index(){ $this->assign('meta_title', "首页"); $this->display(); } /** * 删除缓存 * @author jry <598821125@qq.com> */ public function removeRuntime() { $file = new \Common\Util\File(); $result = $file->del_dir(RUNTIME_PATH); if ($result) { $this->success("缓存清理成功"); } else { $this->error("缓存清理失败"); } } }