public function setTemplateExtension($extension)
    {
        $extension = (string) $extension;
        $extension = trim($extension);
        if ('.' == $extension[0]) {
            $extension = substr($extension, 1);
        }

        $this->extension = $extension;
    }
public function setTemplateExtension($extension)
    {
        $extension = (string) $extension;
        $extension = trim($extension);
        if ('.' == $extension[0]) {
            $extension = substr($extension, 1);
        }

        $this->extension = $extension;
    }
public function setTemplateExtension ( $ extension ) { $ extension = ( string ) $ extension ; $ extension = trim ( $ extension ) ; if ( '.' == $ extension [ 0 ] ) { $ extension = substr ( $ extension , 1 ) ; } $ this -> extension = $ extension ; }
Set Template Extension file

@param string $extension
Set Template Extension file