This article mainly introduces ThinkPHP calling commoncommon. the solution to the error functionundefined prompted by the php function is a problem that is often encountered during ThinkPHP programming upgrade. If you need it, refer to this article to introduce ThinkPHP to call common/common. php function prompts the error function undefined solution. For those who use ThinkPHP for project development, ThinkPHP upgrades often encounter such problems. The detailed description is as follows:
After ThinkPHP is upgraded, the latest ThinkPHP3.2 version is used to put common functions into common/common. php. However, the function undefined error message is displayed when the function is called on a specific page.
After checking the official documentation, we found that the original ThinkPHP3.2 common. php file has been renamed function. php,
So change common. php ---> to function. php. The function is successfully called! Solve the problem!
I hope this method will be helpful for ThinkPHP development.