public function listAction() { $DbConnection = DbConnection::getInstance(); $sql = "SELECT * FROM categoria"; $categories = $DbConnection->getAll($sql); $View = new ListView(); $View->setRows($categories); $View->display(); }