Home  >  Article  >  PHP Framework  >  About accessing the controller from the command line in thinkphp6

About accessing the controller from the command line in thinkphp6

藏色散人
藏色散人forward
2021-04-02 15:41:413464browse

The following tutorial column of thinkphp will introduce you to the command line access controller of thinkphp6. I hope it will be helpful to friends in need!

About accessing the controller from the command line in thinkphp6

##thinkphp6 accessing the controller from the command line

1. First find the request.php file

About accessing the controller from the command line in thinkphp6

2. Modify the location of request.php as follows

About accessing the controller from the command line in thinkphp6

3. Execute the controller directly on the command line

About accessing the controller from the command line in thinkphp6
About accessing the controller from the command line in thinkphp6

4. You can see the printed results

About accessing the controller from the command line in thinkphp6

##Related recommendations:
The latest 10 thinkphp video tutorials

The above is the detailed content of About accessing the controller from the command line in thinkphp6. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete