Fatal error: Uncaught Error: Call to a member function prepare() on null in /home/curso051/public_html/vendor/coffeecode/datalayer/src/DataLayer.php:200
Stack trace:
#0 /home/curso051/public_html/App/Model/CursoModel.php(23): CoffeeCode\DataLayer\DataLayer->fetch()
#1 /home/curso051/public_html/App/Controller/CursoDetalhesController.php(37): App\Model\CursoModel->findByUri('trabalho-infant...')
#2 /home/curso051/public_html/vendor/coffeecode/router/src/Dispatch.php(143): App\Controller\CursoDetalhesController->cursodetalhes(Array)
#3 /home/curso051/public_html/vendor/coffeecode/router/src/Dispatch.php(123): CoffeeCode\Router\Dispatch->execute()
#4 /home/curso051/public_html/index.php(358): CoffeeCode\Router\Dispatch->dispatch()
#5 {main}
thrown in /home/curso051/public_html/vendor/coffeecode/datalayer/src/DataLayer.php on line 200