ThinkPHP command line access controller!

create a server directory under the root directory with a server.php

in it.
$timer_id = swoole_timer_tick(2000, function ($timer_id) {
    echo "tick-2000ms\n";
    (new app\index\controller\Test())->index(time());
});

unexpectedly prompt: Class" appindexcontrollerTest" not found

how do I use it?

Mar.22,2021

is not loaded into the core of tptp and cannot be used directly to tp5 methods with namespaces.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2c449-e04d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2c449-e04d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?