In ThinkPHP3.2.3, calling public functions is in the Common folder under the Application, for example, creating a function. php, where should I write public functions in ThinkPHP5? Is comm in the application folder... in ThinkPHP 3.2.3, calling public functions is in the Common folder under the Application, for example, creating a function. php. I wrote the public functions here.
Where should public functions be written in ThinkPHP 5? Is it in command. php in the application folder, or do I create a function. php file in the command folder under application? (It is strange that there is a command folder under the application folder in the official manual, but I don't have the command folder in the application folder, so I created a new one)
Reply content:
In ThinkPHP 3.2.3, calling public functions is in the Common folder under the Application. for example, if I create a function. php, I write the public functions here.
Where should public functions be written in ThinkPHP 5? Is it in command. php in the application folder, or do I create a function. php file in the command folder under application? (It is strange that there is a command folder under the application folder in the official manual, but I don't have the command folder in the application folder, so I created a new one)
It indicates that you have not started to study tp5 yet. however, to express your respect and gratitude for the invitation of the subject, you can download it immediately. This may be due to the fact that it is still in the testing stage; before the official version is released, you can put the user-defined function in/thinkphp/helper. php file;
In TP5, common functions and manually registered routes are all stored in\ Application \ common. php