There is no problem with running the Smarty3.0 UDF, but the prompt is: Notice: functioncallregister_functionisunknownordeprecated.inE: register the UDF $ sma Smarty3.0.
When the program runs normally, the system prompts: Notice: function call 'register _ function' is unknown or deprecated. in E: \ webphp \ Smarty \ sysplugins \ smarty_internal_wrapper.php on line 57.
Here is the registration function $ smarty-> register_function ('list', 'format _ data ');
According to other materials, this is a feature of smarty2.0. I am currently using 3.0. Please advise how to solve this problem.
------ Solution --------------------
3.0 another method has been used to replace him,
Create a file name in smarty/libs/plugins
Reference address http://www.gxcxy.com/thread-5259-1-1.html
You can see
------ Solution --------------------
Watching, haha
------ Solution --------------------
3.0 if this method is used, an error is reported because the core library has deleted this method, but this method can still be used normally. the previous question is @ First suppress the error:
@ $ Smarty-> register_function ('list', 'format _ data ');
Technical support: http://www.net920.cn http://www.ahthink.com
------ Solution --------------------
Smarty3. * available, $ Smarty-> registerPlugin ()