Re: [SMARTY] templates_c

From: Date: Wed, 25 Jun 2003 20:38:56 +0000
Subject: Re: [SMARTY] templates_c
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9777@lists.php.net to get a copy of this message
If you want to auto set the directories....use the following class. I find it handy and clean ....set ownership directories as explained by messju mohr <?php require_once('smarty/Smarty.class.php'); class template extends Smarty { function template() { $this->Smarty(); $this->template_dir ='templates' . $_SERVER['PHP_SELF']; $this->compile_dir ='templates/templates_c'; $this->config_dir ='templates/configs'; $this->cache_dir ='templates/cache'; $this->caching = false; $this->assign('owner','<admin-email>'); } } ?> -- Peter Rotich Intercosmos Media Group, Inc. -- "A likely impossibility is always preferable to an unconvincing possibility." Aristotle, Green philosopher (384-322BC)

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