code/template/engine/abstract.php
public function locateSource($url)
    {
        if (!$file = $this->getObject('template.locator.factory')->locate($url)) {
            throw new \InvalidArgumentException(sprintf('The template "%s" cannot be located.', $url));
        }

        return $file;
    }
public function locateSource($url)
    {
        if (!$file = $this->getObject('template.locator.factory')->locate($url)) {
            throw new \InvalidArgumentException(sprintf('The template "%s" cannot be located.', $url));
        }

        return $file;
    }
public function locateSource ( $ url ) { if ( ! $ file = $ this -> getObject ( 'template.locator.factory' ) -> locate ( $ url ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The template "%s" cannot be located.' , $ url ) ) ; } return $ file ; }
Locate a template file, given it's url.

@param   string  $url The template url
@throws \InvalidArgumentException If the template could not be located
@throws \RuntimeException If a partial template url could not be fully qualified
@return string   The template real path
Locate a template file given it s url .