Re: Deleting Compiled Dirs

From: Date: Mon, 14 Jan 2002 04:35:20 +0000
Subject: Re: Deleting Compiled Dirs
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2531@lists.php.net to get a copy of this message
At 23:38 13/01/02 -0500, Michael Weck wrote:
Hello. Didn't see this in the docs... how do I delete a 'templates_c' dir? When I try with FTP I get "Access denied" errors? Do I need root level access to do this?
Michael To delete a specific template : require("Smarty.class.php"); $smarty = new Smarty; $smarty->compile_check = true; $smarty->clear_compiled_tpl("my.specific.template.tpl"); To delete all comliled templates : require("Smarty.class.php"); $smarty = new Smarty; $smarty->compile_check = true; $smarty->clear_compiled_tpl(); To delete the directory (this is a strange operation) have a look at your ftp rights.... Luc

« previous php.smarty.general (#2531) next »