Alright, so you haven’t read the full documentation of cake. I will highly recommend you to learn how MVC works.
As for your problem, the error in YELLOW color tells you the solution itself.
- Create controller
Create a controller file in \src\Controller
Myapp_testsController.php
- Do the following coding in it
<?php
namespace App\Controller;
use App\Controller\AppController;
class Myapp_testsController extends AppController
{
public function index(){
echo “Hello World.!”;
}
}
- Create View Folder
Create your view folder here \src\Template"Your Controller name"
in our case: \src\Template\Myapp_tests
- Create View File
Navigate to your recently created folder i.e: \src\Template\Myapp_tests
and create a file name index.ctp
and Everything will work now.