i begin with the programming with CakePHP and i want to get data from a mysql database but i dont understand this error, i hope anyone can help.
<?php
namespace App\Controller;
use App\Controller\AppController;
class TodosController extends AppController
{
public function index()
{
$t = $this->Todo->find('all');
$this->set('todos',$t);
$this->set('currentTime',time());
}
}
and i become this Error: Call to a member function find() on boolean File C:\xampp\htdocs\Cake\src\Controller\TodosController.php Line: 10