public function getTemplatePath($templateName)
    {
        $fileName = "$templateName.php";
        foreach ($this->paths as $path) {
            $fullPath = $path . DIRECTORY_SEPARATOR . $fileName;
            if (is_file($fullPath)) {
                return $fullPath;
            }
        }
        return false;
    }
public function getTemplatePath($templateName)
    {
        $fileName = "$templateName.php";
        foreach ($this->paths as $path) {
            $fullPath = $path . DIRECTORY_SEPARATOR . $fileName;
            if (is_file($fullPath)) {
                return $fullPath;
            }
        }
        return false;
    }
public function getTemplatePath ( $ templateName ) { $ fileName = "$templateName.php" ; foreach ( $ this -> paths as $ path ) { $ fullPath = $ path . DIRECTORY_SEPARATOR . $ fileName ; if ( is_file ( $ fullPath ) ) { return $ fullPath ; } } return false ; }
Returns full path to template file.

@param string $templateName
@return bool|string full path or false
Returns full path to template file .