public function reset($id) {
        $template = $this->load(array('name'=>$id));

        $result = false;
        if (count($template) == 1) {
            if (unlink($this->_path . '/template-local.ini')) {
                // Now force recompile
                $this->_templates = false;
                $this->_template = '';

                $template = $this->load(array('name'=>$id));
                $this->saveTemplate($id, $template[$id]);
                $result = true;
            }
        }

        return $result;
    }
public function reset($id) {
        $template = $this->load(array('name'=>$id));

        $result = false;
        if (count($template) == 1) {
            if (unlink($this->_path . '/template-local.ini')) {
                // Now force recompile
                $this->_templates = false;
                $this->_template = '';

                $template = $this->load(array('name'=>$id));
                $this->saveTemplate($id, $template[$id]);
                $result = true;
            }
        }

        return $result;
    }
public function reset ( $ id ) { $ template = $ this -> load ( array ( 'name' => $ id ) ) ; $ result = false ; if ( count ( $ template ) == 1 ) { if ( unlink ( $ this -> _path . '/template-local.ini' ) ) { // Now force recompile
 $ this -> _templates = false ; $ this -> _template = '' ; $ template = $ this -> load ( array ( 'name' => $ id ) ) ; $ this -> saveTemplate ( $ id , $ template [ $ id ] ) ; $ result = true ; } } return $ result ; }
Reset a template to it's default values by deleteing template-local.ini

@param string $id
@return boolean true on success
Reset a template to it s default values by deleteing template - local . ini