Tá dando o seguinte erro após eu criar o arquivo listagem.php:
BadMethodCallException in View.php line 387: Method [whith] does not exist on view.
Segue o código da pagina:
<!DOCTYPE html>
<html>
<head>
<title>Controle de estoque</title>
</head>
<body>
<h1>Listagem de produtos com descrição</h1>
<table>
<?php foreach ($produtos as $p): ?>
<tr>
<td><= $p->nome ?></td>
<td><= $p->valor ?></td>
<td><= $p->descricao ?></td>
<td><= $p->quantidade ?></td>
</tr>
<?php endforeach ?>
</table>
</body>
</html>