The method of executing tp5 Controller under linux

want to use the command line situation in the linux server to run the methods in the controller, such as the get method in the stu controller in the app module

Sep.06,2021

for example, your project directory is / www/wwwroot/project
you first

cd /www/wwwroot/project/public

after

php index.php app/sty/get

if you have set up routing, then execute

php index.php 

Wow, love you, can execute

Menu