Urgency: How to configure Smarty upload to a spatial profile?
My configuration file is written like this.
The Space Display page
Wwwroot (home folder) CCC date 2 folders
Press this configuration in the wwwroot can not output the normal display page and also do not prompt error message.
I don't put this folder on the CCC should be how to modify the configuration
PHP Code
Debugging=false; $smarty->compile_check=false; $smarty->template_dir = "./templates/". $smartytpl; $smarty->compile_dir = "./templates_c/"; $smarty->config_dir = "./config/"; $smarty->cache_dir = "./cache/"; $smarty->caching = false; Upload to True $smarty->cache_lifetime = 118; $smarty->left_delimiter = "{"; $smarty->right_delimiter = "}"; ?>
------Solution--------------------
PHP code
Include_once ("class/smarty.class.php"); $global [' Path ' [' root '] = dirname (__file__). '/'; Site root $smarty = new Smarty (), $smarty->template_dir = $global [' path '] [' root ']. ' templates/default/'; Smarty cache file is stored in the directory, my side is themes/default/$smarty->compile_dir = $global [' path '] [' root ']. ' tmp/templates_c/'; $smarty->config_dir = $global [' path '] [' root ']. ' conf/'; $smarty->cache_dir = $global [' path '] [' cache ']. ' smarty/'; $smarty->caching = 0; $smarty->cache_lifetime = 6000; $smarty->left_delimiter = '!--{'; $smarty->right_delimiter = '}--> '; $smarty->trusted_dir = $global [' path '] [' root '];