In Linux, the display problem in Smarty is good in windows, but it won't work in linux. in linux, the path is \ 192.168.73.20.ubuntuusrlocalnginxtest. & Nbsp; all files are placed under test. Then, the HTML to be called by Smarty is placed in the display of \ 192.168.73.20.ubuntuusr Linux.
It works well in windows, but it doesn't work in linux. in linux, the path is \ 192.168.73.112 \ ubuntu \ usr \ local \ nginx \ test. All files are placed under test. Then, put the HTML to be called by Smarty under \ 192.168.73.112 \ ubuntu \ usr \ local \ nginx \ test \ View.
In linux, I printed the template_dir file/usr/local/nginx/test/View.
But execute print_r ($ Smarty-> template_dir); the information is displayed,
$ Smarty-> display('index.html '); but no interface is displayed.
Anyone who can tell me the reason, as long as the relevant information is reliable, will tell me.
------ Solution --------------------
But execute print_r ($ Smarty-> template_dir );
Post content
------ Solution --------------------
Do you have permissions?