How to solve the Smarty3.0 user-defined function

Source: Internet
Author: User
There is no problem with the program running the Smarty3.0 custom function, but the prompt is: Notice: functioncall 'register _ function' isunknownordeprecated. inE: \ webphp \ Smarty \ sysplugins \ sma Smarty3.0 custom function
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 ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.