lib/adapter/Wind.php
protected function getRealTplPath($file) {
        if (isset($this->cfg['tplSubDir'])) {
            $tplFile = $this->getTplPath($file, $this->cfg['tplSubDir']);
            
            if (is_file($tplFile)) {
                return $tplFile;
            } else {
                return false;
            }
        }
        
        // 第一次执行getTpl，初始化subDir
        if (!empty($this->cfg['tplMajorId']) || !empty($this->cfg['tplMinorId'])) {
            // 主模板不存在则选择备用模板
            if (is_file($tplFile = $this->getTplPath($file, $this->cfg['tplMajorId']))) {
                $this->cfg['tplSubDir'] = $this->cfg['tplMajorId'];
                return $tplFile;
            } else if (is_file($tplFile = $this->getTplPath($file, $this->cfg['tplMinorId']))) {
                $this->cfg['tplSubDir'] = $this->cfg['tplMinorId'];
                return $tplFile;
            }
        } else {
            $this->cfg['tplSubDir'] = '';
            $tplFile = $this->getTplPath($file);
            
            if (is_file($tplFile)) {
                return $tplFile;
            }
        }
        
        return false;
    }
protected function getRealTplPath($file) {
        if (isset($this->cfg['tplSubDir'])) {
            $tplFile = $this->getTplPath($file, $this->cfg['tplSubDir']);
            
            if (is_file($tplFile)) {
                return $tplFile;
            } else {
                return false;
            }
        }
        
        // 第一次执行getTpl，初始化subDir
        if (!empty($this->cfg['tplMajorId']) || !empty($this->cfg['tplMinorId'])) {
            // 主模板不存在则选择备用模板
            if (is_file($tplFile = $this->getTplPath($file, $this->cfg['tplMajorId']))) {
                $this->cfg['tplSubDir'] = $this->cfg['tplMajorId'];
                return $tplFile;
            } else if (is_file($tplFile = $this->getTplPath($file, $this->cfg['tplMinorId']))) {
                $this->cfg['tplSubDir'] = $this->cfg['tplMinorId'];
                return $tplFile;
            }
        } else {
            $this->cfg['tplSubDir'] = '';
            $tplFile = $this->getTplPath($file);
            
            if (is_file($tplFile)) {
                return $tplFile;
            }
        }
        
        return false;
    }
获取模板文件真是路径

@param string $file
@return string|boolean