2014年1月26日 星期日

[Resolved] Smarty Fatal error: Call to undefined function config_load(): fail to load configuration file

In Smarty3, tried to load the configuration file in php but not success.. it returns the error message of
Call to undefined function config_load()

The PHP code is as below:
$smarty = new Smarty ();
$smarty->config_load("test.conf");


Solution:
The load configuration function should be configLoad, instead of config_load.

$smarty = new Smarty ();
$smarty->configLoad("test.conf");


沒有留言:

張貼留言