: This article mainly introduces the ThinkPHP323 custom function library. if you are interested in the PHP Tutorial, refer to it. An error is reported because the user-defined function library of previous versions of ThinkPHP is different from the user-defined function library of current version 3.2.3.
:(
Call to undefined function Home \ Controller \ show ()
Error location
FILE: D: \ php_demo \ wxtest \ Application \ Home \ Controller \ IndexController. class. php LINE: 11
ThinkPHP3.2.3 {Fast & Simple oop php Framework} -- [we can do it just think]
My custom functions are:
";}
The previous version seems to be defined in Application/Common/common. php, but version 3.2.3 does not work. the correct method is
Definition path: Common/function. php instead of common. php and functions. php
Call
Result:
The above introduces ThinkPHP323 user-defined function library, including some content, hope to be helpful to friends who are interested in PHP tutorials.