开发者

In Smarty display method not working

开发者 https://www.devze.com 2023-04-11 19:03 出处:网络
Display method not working only print \"kamal\" not print \"maisuriya\" Please he开发者_StackOverflow社区lp me?

Display method not working only print "kamal" not print "maisuriya"

Please he开发者_StackOverflow社区lp me?

print("kamal");
$tpl->display('default_layout'. $config['tplEx']);
print("Maisuriya");


If you're not seeing any error messages, you might want to activate them (temporarily) with ini_set("display_errors", true); error_reporting(E_ALL);

If you're using Smarty3 run a $tpl->testInstall(); after you've setup Smarty to see if everything is ok. Then check if your template exists with $tpl->templateExists('default_layout'. $config['tplEx']);

My guess is either the requested file doesn't exist, or the template contains syntax errors, or some function called within the template did not execute properly. But without the error message, I can't tell.

0

精彩评论

暂无评论...
验证码 换一张
取 消