Fatal error: Uncaught Error: Call to a member function getCodigo() on null in C:\xampp\htdocs\web\views\DiputadosView.php:29 Stack trace: #0 C:\xampp\htdocs\web\controller\DiputadosController.php(62): DiputadosView->showUno('28267772?view=a...') #1 C:\xampp\htdocs\web\index.php(137): DiputadosController->homeUno('28267772?view=a...') #2 {main} thrown in C:\xampp\htdocs\web\views\DiputadosView.php on line 29