Re: [SMARTY] smarty installation in safe-mode server

From: Date: Tue, 25 Mar 2003 16:12:06 +0000
Subject: Re: [SMARTY] smarty installation in safe-mode server
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8898@lists.php.net to get a copy of this message
D.B. <music_ml@yahoo.com.ar> wrote: > define('SMARTY_DIR', '../smarty/'); > > require_once(SMARTY_DIR . 'Smarty.class.php'); > > $smarty = new Smarty; > > $smarty->template_dir = SMARTY_DIR . 'templates/'; > $smarty->compile_dir = SMARTY_DIR . 'templates_c/'; > $smarty->config_dir = SMARTY_DIR . 'configs/'; > $smarty->cache_dir = SMARTY_DIR . 'cache/'; > > $smarty->assign('name','Ned'); > > $smarty->display('index.tpl'); add $smarty->use_sub_dirs = false; Then make sure that templates_c is owned by the owner of the script that is running and not as the user running the webserver and that it is world writable. If you plan to use the cacheing features, do the same for cache as well. Best regards. -- _nimrod_a_abing_ PGP Public Key here: http://www.redberger.com/~abing/abing_at_redberger_dot_com.asc Key expires at Thu Nov 6 11:01:34 2003 PHT

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