public function setCurrentNamespace($sNamespace)
    {
        $this->sDirectory = '';
        $this->sExtension = '';
        if(key_exists($sNamespace, $this->aDirectories))
        {
            // Make sure there's only one '/' at the end of the string
            $this->sDirectory = rtrim($this->aDirectories[$sNamespace]['path'], '/') . '/';
            // Make sure there's only one '.' at the beginning of the string
            $this->sExtension = '.' . ltrim($this->aDirectories[$sNamespace]['ext'], '.');
        }
    }
public function setCurrentNamespace($sNamespace)
    {
        $this->sDirectory = '';
        $this->sExtension = '';
        if(key_exists($sNamespace, $this->aDirectories))
        {
            // Make sure there's only one '/' at the end of the string
            $this->sDirectory = rtrim($this->aDirectories[$sNamespace]['path'], '/') . '/';
            // Make sure there's only one '.' at the beginning of the string
            $this->sExtension = '.' . ltrim($this->aDirectories[$sNamespace]['ext'], '.');
        }
    }
public function setCurrentNamespace ( $ sNamespace ) { $ this -> sDirectory = '' ; $ this -> sExtension = '' ; if ( key_exists ( $ sNamespace , $ this -> aDirectories ) ) { // Make sure there's only one '/' at the end of the string $ this -> sDirectory = rtrim ( $ this -> aDirectories [ $ sNamespace ] [ 'path' ] , '/' ) . '/' ; // Make sure there's only one '.' at the beginning of the string $ this -> sExtension = '.' . ltrim ( $ this -> aDirectories [ $ sNamespace ] [ 'ext' ] , '.' ) ; } }
Find the namespace of the template being rendered

@param string        $sNamespace         The namespace name

@return void
Find the namespace of the template being rendered