public function getTemplateFile($template)
    {
        $paths  = $this->config["path"];
        $suffix = $this->config["suffix"];

        foreach ($paths as $path) {
            $file = $path . "/" . $template . $suffix;
            if (is_file($file)) {
                return $file;
            }
        }

        throw new Exception("Could not find template file '$template'.");
    }
public function getTemplateFile($template)
    {
        $paths  = $this->config["path"];
        $suffix = $this->config["suffix"];

        foreach ($paths as $path) {
            $file = $path . "/" . $template . $suffix;
            if (is_file($file)) {
                return $file;
            }
        }

        throw new Exception("Could not find template file '$template'.");
    }
public function getTemplateFile ( $ template ) { $ paths = $ this -> config [ "path" ] ; $ suffix = $ this -> config [ "suffix" ] ; foreach ( $ paths as $ path ) { $ file = $ path . "/" . $ template . $ suffix ; if ( is_file ( $ file ) ) { return $ file ; } } throw new Exception ( "Could not find template file '$template'." ) ; }
Convert template to path to template file.

@param string $template the name of the template file to include

@throws Anax\View\Exception when template file is missing

@return string as path to the template file
Convert template to path to template file .