Display problems in Linux under Smarty

Source: Internet
Author: User
Tags stack trace
It works under Windows, but not under Linux, my path under Linux is \\192.168.73.112\ubuntu\usr\local\nginx\test. All the files are placed under test. Then smarty the HTML that needs to be called under \\192.168.73.112\ubuntu\usr\local\nginx\test\View.
I print Template_dir under Linux is/usr/local/nginx/test/view.

But the executive Print_r ($Smarty->template_dir); This message came out,
$Smarty->display (' index.html '), but no interface is displayed.

Who can tell me the reason, as long as the relevant, reliable all told me.


Reply to discussion (solution)

But the executive Print_r ($Smarty->template_dir); This one's out of the news.
What content, post it out

But the executive Print_r ($Smarty->template_dir); This one's out of the news.
What content, post it out

Linux is:/usr/local/nginx/test/view
Under Windows is: Array ([0] = d:\wamp\www\kmbackgroud/view\)

How does Linux print out the same format as under Windows?

Sorry, the above error, this is Linux under the print out.
Array ([0] =/usr/local/nginx/test/view/) Showing 1
Fatal error:uncaught exception ' smartyexception ' with message ' Unable to write File/usr/local/nginx/test/runtime/templa tescache_c/wrt4f694a4d12ab36.56330404 ' In/usr/local/nginx/test/vender/smarty/sysplugins/smarty_internal_write_ File.php:44 Stack Trace: #0/usr/local/nginx/test/vender/smarty/sysplugins/smarty_internal_template.php (201): Smarty_internal_write_file::writefile ('/usr/local/ngin ... ', ' Compiletemplatesource () #2/usr/local/nginx/test/vender/smarty/sysplugins/smarty_internal_templatebase.php (374): Smarty_internal_templatebase->fetch (' index.html ', NULL, NULL, NULL, TRUE) #3/usr/local/nginx/test/controller/ ControllerBase.class.php (126): Smarty_internal_templatebase->display (' index.html ', NULL, NULL, NULL) #4/usr/ local/nginx/test/controller/controllerlogin.class.php: Controllerbase->display (' index.html ') #5/usr/local /nginx/test/controller/controllerbase.cl In/usr/local/nginx/test/vender/smarty/sysplugins/smarty_internal_write _file.php on line 44

Printed out under Windows
Array ([0] = d:\wamp\www\kmbackgroud/view\) showing 1 Chunghui BBB

The contents of display in Linux Smarty can not be displayed, and the echo before display will not

There's wood and permission.

Upstairs positive solution: Execute Chmod-r 777 under the root directory templates_c/

  • 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.