Because the way of customizing function libraries in previous versions of ThinkPHP is inconsistent with the way of customizing function libraries in the current version 3.2.3, an error will be reported
:(
Call to undefined function HomeControllershow()
Error location
FILE: D:php_demowxtestApplicationHomeControllerIndexController.class. php LINE: 11
ThinkPHP3.2.3 { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]
My custom function is:
<?php function show() { echo "hello world<br/>"; }
call
Result:The above introduces the ThinkPHP323 custom function library, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.