How do I configure quick smarty to upload files to a space configuration file? What should I do?

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

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.