lib/adapter/Wind.php
protected function getTpl($file)
    {
        $file = $this->fixFileName($file);
        $tplFile = $this->getRealTplPath($file);
        
        if (!$tplFile) {
            throw new \wf\template\Exception("template file '{$file}' not exists!");
        }
        
        $compiledName = str_replace("/", '^', $file);
        $compiledFile = "{$this->cfg['compileDir']}/{$this->cfg['tplSubDir']}^{$this->cfg['compileId']}^{$compiledName}.php";
        
        // 判断是否强制编译或是否过期($compiledFile不存在时 < 成立)
        if($this->cfg['compileForce'] || !is_file($compiledFile) || ($this->cfg['compileCheck'] && @filemtime($compiledFile) < @filemtime($tplFile))) {
            $this->compile($tplFile, $compiledFile);
        }
        
        return $compiledFile;
    }
protected function getTpl($file)
    {
        $file = $this->fixFileName($file);
        $tplFile = $this->getRealTplPath($file);
        
        if (!$tplFile) {
            throw new \wf\template\Exception("template file '{$file}' not exists!");
        }
        
        $compiledName = str_replace("/", '^', $file);
        $compiledFile = "{$this->cfg['compileDir']}/{$this->cfg['tplSubDir']}^{$this->cfg['compileId']}^{$compiledName}.php";
        
        // 判断是否强制编译或是否过期($compiledFile不存在时 < 成立)
        if($this->cfg['compileForce'] || !is_file($compiledFile) || ($this->cfg['compileCheck'] && @filemtime($compiledFile) < @filemtime($tplFile))) {
            $this->compile($tplFile, $compiledFile);
        }
        
        return $compiledFile;
    }
获取编译后的模板文件路径

@param string $file 模板文件名
@return string 编译后的模板文件路径