Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created November 2, 2011 23:03
Show Gist options
  • Save eminetto/1335234 to your computer and use it in GitHub Desktop.
Save eminetto/1335234 to your computer and use it in GitHub Desktop.
<h1>Posts</h1>
<a href="/post/create">Adicionar</a>
<?php foreach($this->posts as $p) {?>
<h3><?php echo $p['title']; ?></h3>
<p><?php echo nl2br($p['description']); ?></p>
<p><a href="/post/update/id/<?php echo $p['id'];?>">Editar</a></p>
<p><a href="/post/delete/id/<?php echo $p['id'];?>">Excluir</a></p>
<?php } ?>
@tgiovanella
Copy link

Era falta de conexão :S Como ele não informa mensagem de erro, ficou dificil de encontrar. Erro de principiante.:D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment