Created
August 3, 2014 00:08
-
-
Save felipesr/7e53f0e68010168462e5 to your computer and use it in GitHub Desktop.
View/Artigos/listar.ctp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
foreach ($artigos AS $row) | |
{ | |
$nome_artigo = $row['Artigo']['nome']; | |
$data_artigo = $row['Artigo']['data']; | |
$url_artigo = $row['Artigo']['url']; | |
echo CakeTime::format($data_artigo, '%d-%m-%Y'); // formatacao de data via classe nativa CakeTime | |
echo $this->Html->link($nome_artigo, $url_artigo, array('target' => 'blank')); | |
echo "<br />"; | |
} | |
// Shows the page numbers | |
echo $this->Paginator->numbers(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment