public function getCompiledFile($template)
	{	
		$tplFile = static::getTemplateFile($template);
		if ($this->options['engine'] === 'php'){
			return $tplFile;
		}
		
		if(file_exists($tplFile)) {
		    if (is_file($template)) {
		        $tplCompiledFile = static::getCompiledPath() . '/_file/' . md5($template) . '.php';
		    } else {
                $tplCompiledFile = static::getCompiledPath() . $this->_getRelativeTemplate($template) . '.php';
		    }
		    
			if (!$this->options['isCompiled'] || !file_exists($tplCompiledFile) || (@filemtime($tplFile) > @filemtime($tplCompiledFile)) ) {
				$tplCompiledPath = dirname($tplCompiledFile);
				if (!file_exists($tplCompiledPath)) {
					Dir::create($tplCompiledPath, 0755);
				}
				
				$content = file_get_contents($tplFile);
				$content = $this->parse($content);
				
				$strlen = file_put_contents($tplCompiledFile, $content);
				chmod ($tplCompiledFile, 0755);
			}
			
			return $tplCompiledFile;
		} else {
			throw new ViewException('template: ' . $tplFile. ' is not exists.');
		}
	}
public function getCompiledFile($template)
	{	
		$tplFile = static::getTemplateFile($template);
		if ($this->options['engine'] === 'php'){
			return $tplFile;
		}
		
		if(file_exists($tplFile)) {
		    if (is_file($template)) {
		        $tplCompiledFile = static::getCompiledPath() . '/_file/' . md5($template) . '.php';
		    } else {
                $tplCompiledFile = static::getCompiledPath() . $this->_getRelativeTemplate($template) . '.php';
		    }
		    
			if (!$this->options['isCompiled'] || !file_exists($tplCompiledFile) || (@filemtime($tplFile) > @filemtime($tplCompiledFile)) ) {
				$tplCompiledPath = dirname($tplCompiledFile);
				if (!file_exists($tplCompiledPath)) {
					Dir::create($tplCompiledPath, 0755);
				}
				
				$content = file_get_contents($tplFile);
				$content = $this->parse($content);
				
				$strlen = file_put_contents($tplCompiledFile, $content);
				chmod ($tplCompiledFile, 0755);
			}
			
			return $tplCompiledFile;
		} else {
			throw new ViewException('template: ' . $tplFile. ' is not exists.');
		}
	}
public function getCompiledFile ( $ template ) { $ tplFile = static :: getTemplateFile ( $ template ) ; if ( $ this -> options [ 'engine' ] === 'php' ) { return $ tplFile ; } if ( file_exists ( $ tplFile ) ) { if ( is_file ( $ template ) ) { $ tplCompiledFile = static :: getCompiledPath ( ) . '/_file/' . md5 ( $ template ) . '.php' ; } else { $ tplCompiledFile = static :: getCompiledPath ( ) . $ this -> _getRelativeTemplate ( $ template ) . '.php' ; } if ( ! $ this -> options [ 'isCompiled' ] || ! file_exists ( $ tplCompiledFile ) || ( @ filemtime ( $ tplFile ) > @ filemtime ( $ tplCompiledFile ) ) ) { $ tplCompiledPath = dirname ( $ tplCompiledFile ) ; if ( ! file_exists ( $ tplCompiledPath ) ) { Dir :: create ( $ tplCompiledPath , 0755 ) ; } $ content = file_get_contents ( $ tplFile ) ; $ content = $ this -> parse ( $ content ) ; $ strlen = file_put_contents ( $ tplCompiledFile , $ content ) ; chmod ( $ tplCompiledFile , 0755 ) ; } return $ tplCompiledFile ; } else { throw new ViewException ( 'template: ' . $ tplFile . ' is not exists.' ) ; } }
get compiled template full path
@param  string $template
@throws \Wslim\View\Exception
@return string
get compiled template full path