swoole-framwork/dbtest.php
2024-05-20 11:51:07 +08:00

8 lines
218 B
PHP

<?php
require_once __DIR__.'/vendor/autoload.php';
require_once __DIR__."/app/config/define.php";
$db = new \Core\init\MyDB();
$users = $db->table('user')->get();
foreach ($users as $user){
echo $user->nickname;
}