private function scanFor($template)
    {
        $in = $this->dirs;
        $found = false;
        while (! $found && ! empty($in)) {
            $dir = array_shift($in);
            $found = $this->exists($dir, $template);
        }

        return $found;
    }
private function scanFor($template)
    {
        $in = $this->dirs;
        $found = false;
        while (! $found && ! empty($in)) {
            $dir = array_shift($in);
            $found = $this->exists($dir, $template);
        }

        return $found;
    }
private function scanFor ( $ template ) { $ in = $ this -> dirs ; $ found = false ; while ( ! $ found && ! empty ( $ in ) ) { $ dir = array_shift ( $ in ) ; $ found = $ this -> exists ( $ dir , $ template ) ; } return $ found ; }
Scans directories to find a template that matches given template name.

@param  string         $template
@return string|boolean Template full path if found, false otherwise
@access private
Scans directories to find a template that matches given template name .