Urgent: How do I configure the configuration file that smarty uploads to a space? My configuration file is written in this way. The Space display page is in the & nbsp; wwwroot (home page folder) the cccdate2 folders are placed in wwwroot according to this configuration. the normal display page cannot be output and no error message is displayed .. how can I worry if I don't put this folder in ccc: How do I configure the smarty configuration file to be uploaded to the space configuration file?
My configuration file is written in this way.
On the space display page
Wwwroot (home page folder) ccc date 2 folders
Press this configuration and put it in wwwroot. the normal display page cannot be output, and no error message is prompted ..
I don't put this folder in ccc. how should I 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; // 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 __). '/'; // The website root directory $ smarty = new Smarty (); $ smarty-> template_dir = $ global ['path'] ['root']. 'Templates/default/'; // directory where the smarty cache file is stored, here 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-> trusted_dir = $ global ['path'] ['root'];