public function findTemplate($template)
    {
        $file = $this->basePath("app/Template/$template");
        if($this->findFile($file)) {
            return $file;
        }
        elseif($this->findFile($file.'.html')) {
            return $file.'.html';
        }
        elseif($this->findFile($file.'.php')) {
            return $file.'.php';
        }
        else {
            throw new Exception($file." Template file is missing.");
            exit;
        }
    }
public function findTemplate($template)
    {
        $file = $this->basePath("app/Template/$template");
        if($this->findFile($file)) {
            return $file;
        }
        elseif($this->findFile($file.'.html')) {
            return $file.'.html';
        }
        elseif($this->findFile($file.'.php')) {
            return $file.'.php';
        }
        else {
            throw new Exception($file." Template file is missing.");
            exit;
        }
    }
public function findTemplate ( $ template ) { $ file = $ this -> basePath ( "app/Template/$template" ) ; if ( $ this -> findFile ( $ file ) ) { return $ file ; } elseif ( $ this -> findFile ( $ file . '.html' ) ) { return $ file . '.html' ; } elseif ( $ this -> findFile ( $ file . '.php' ) ) { return $ file . '.php' ; } else { throw new Exception ( $ file . " Template file is missing." ) ; exit ; } }
Find a Template.

@param   string  $template
@return  string  full template file path
@throws  Exception
Find a Template .