How to configure the Smarty upload to a spatial profile? How to Handle

Source: Internet
Author: User
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 ']; 
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.