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/Controller/AppController.php(28): CoffeeCode\DataLayer\DataLayer->fetch(true)
#1 /home/curso051/public_html/App/Controller/AppController.php(13): App\Controller\AppController->montaCache()
#2 /home/curso051/public_html/App/Controller/HomeController.php(13): App\Controller\AppController->__construct(Object(CoffeeCode\Router\Router))
#3 /home/curso051/public_html/vendor/coffeecode/router/src/Dispatch.php(141): App\Controller\HomeController->__construct(Object(CoffeeCode\Router\Router))
#4 /home/curso051/public_html/vendor/coffeecode/router/src/Dispatch.php(123): CoffeeCode\Router\Dispatch->execute()
#5 /home/curso051/public_html/index.php(367): CoffeeCode\Router\Dispatch->dispatch()
#6 {main}
thrown in /home/curso051/public_html/vendor/coffeecode/datalayer/src/DataLayer.php on line 200