view/k.php
public static function render($dir, array $param = null,$cache = NULL,$ctime = NULL){
        $trace = debug_backtrace(1);
        self::$param = $param;
        $project = isset($trace['3']['args']['0']['0'])?$trace['3']['args']['0']['0']:'admin';
        self::ReloadConfig($project);
        self::setTemplate();
        self::setCache($cache,$ctime);
        self::setParam();
        self::setView($dir);
    }
public static function render($dir, array $param = null,$cache = NULL,$ctime = NULL){
        $trace = debug_backtrace(1);
        self::$param = $param;
        $project = isset($trace['3']['args']['0']['0'])?$trace['3']['args']['0']['0']:'admin';
        self::ReloadConfig($project);
        self::setTemplate();
        self::setCache($cache,$ctime);
        self::setParam();
        self::setView($dir);
    }
k::render('index',[
'name' => 'zhang'
],true,3600)
@author brain_yang <qiaopi520@qq.com>
@name view
@date: 2017年7月25日 下午8:35:21
@author: brain_yang
@param: $dir is view file
@param: $param is array
@param: $cache  Cache enabled  defaults to off
@param: $ctime  cacheTime
@return: