This article mainly introduces ThinkPHP's solution to the error functionundefined when calling the commoncommon. php function. it is a problem frequently encountered during ThinkPHP programming upgrade. if you need ThinkPHP, you can refer to ThinkPHP.
This article describes how ThinkPHP calls the common/common. php function and prompts the error function undefined. 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.