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/