for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Controller;
use Core\Application;
use App\Entity\Post;
use Core\Utils\EntityUtils\EntitySelect;
class Test
{
public function echoTest()
echo 'Hello Test!';
}
public function paramTest($name)
echo 'Hello ' . $name . '!';
public function dbTest()
return EntitySelect::select(Post::class)->findAll();
public function goMain()
return 'redirect: ' . Application::getUrl();
public function event()
echo 'Event!';
public function admin()
echo 'Admin page';
public function jsonTest()
return [
[
'title' => 'title 1',
'content' => 'content 1'
],
'title' => 'title 2',
'content' => 'content 2'
'title' => 'title 3',
'content' => 'content 3'
]
];