public function addTemplateMapping($uri, $url)
    {
        if (gettype($uri) !== 'string') {
            $msg = "The uri argument must be a string, '" . gettype($uri) . "' given.";
            throw new InvalidArgumentException($msg);
        }

        if (gettype($url) !== 'string') {
            $msg = "The url argument must be a string, '" . gettype($uri) . "' given.";
            throw new InvalidArgumentException($msg);
        }

        $templateMapping = &$this->getTemplateMapping();
        $templateMapping[$uri] = $url;
    }
public function addTemplateMapping($uri, $url)
    {
        if (gettype($uri) !== 'string') {
            $msg = "The uri argument must be a string, '" . gettype($uri) . "' given.";
            throw new InvalidArgumentException($msg);
        }

        if (gettype($url) !== 'string') {
            $msg = "The url argument must be a string, '" . gettype($uri) . "' given.";
            throw new InvalidArgumentException($msg);
        }

        $templateMapping = &$this->getTemplateMapping();
        $templateMapping[$uri] = $url;
    }
public function addTemplateMapping ( $ uri , $ url ) { if ( gettype ( $ uri ) !== 'string' ) { $ msg = "The uri argument must be a string, '" . gettype ( $ uri ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } if ( gettype ( $ url ) !== 'string' ) { $ msg = "The url argument must be a string, '" . gettype ( $ uri ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } $ templateMapping = & $ this -> getTemplateMapping ( ) ; $ templateMapping [ $ uri ] = $ url ; }
Add a template mapping.

@param string $uri The template URI (Uniform Resource Identifier).
@param string $url The actual template URL, i.e. where to find the file containing the template markup.
@throws \InvalidArgumentException If $uri or $url are not strings.
Add a template mapping .