public function addViewNamespace($sNamespace, $sDirectory, $sExtension, $sRenderer)
    {
        $aNamespace = array(
            'namespace' => $sNamespace,
            'directory' => $sDirectory,
            'extension' => $sExtension,
        );
        if(key_exists($sRenderer, $this->aViewNamespaces))
        {
            $this->aViewNamespaces[$sRenderer][] = $aNamespace;
        }
        else
        {
            $this->aViewNamespaces[$sRenderer] = array($aNamespace);
        }
        $this->aViewRenderers[$sNamespace] = $sRenderer;
    }
public function addViewNamespace($sNamespace, $sDirectory, $sExtension, $sRenderer)
    {
        $aNamespace = array(
            'namespace' => $sNamespace,
            'directory' => $sDirectory,
            'extension' => $sExtension,
        );
        if(key_exists($sRenderer, $this->aViewNamespaces))
        {
            $this->aViewNamespaces[$sRenderer][] = $aNamespace;
        }
        else
        {
            $this->aViewNamespaces[$sRenderer] = array($aNamespace);
        }
        $this->aViewRenderers[$sNamespace] = $sRenderer;
    }
public function addViewNamespace ( $ sNamespace , $ sDirectory , $ sExtension , $ sRenderer ) { $ aNamespace = array ( 'namespace' => $ sNamespace , 'directory' => $ sDirectory , 'extension' => $ sExtension , ) ; if ( key_exists ( $ sRenderer , $ this -> aViewNamespaces ) ) { $ this -> aViewNamespaces [ $ sRenderer ] [ ] = $ aNamespace ; } else { $ this -> aViewNamespaces [ $ sRenderer ] = array ( $ aNamespace ) ; } $ this -> aViewRenderers [ $ sNamespace ] = $ sRenderer ; }
Add a view namespace, and set the corresponding renderer.

@param string        $sNamespace         The namespace name
@param string        $sDirectory         The namespace directory
@param string        $sExtension         The extension to append to template names
@param string        $sRenderer          The corresponding renderer name

@return void
Add a view namespace and set the corresponding renderer .