Updated generation of previous days in heading on home template, now looped into array then passed to smarty

Signed-off-by: Nathan Booth <nath.booth@gmail.com>
This commit is contained in:
Nathan Booth
2011-12-19 14:10:00 +00:00
parent 116140ee17
commit 1f2d8fec99
2 changed files with 6 additions and 11 deletions

View File

@@ -3,12 +3,9 @@
$services = StatusBoard_Service::all();
for ($i = 1; $i <= 6; ++$i){
$day = 'day'.$i;
$date = date("M. d", strtotime("-{$i}day"));
$this->smarty->assign($day, $date);
$tbl_header_date[] = date("M. d", strtotime("-{$i}day"));
}
$this->smarty->assign('days', $tbl_header_date);
$this->smarty->assign('services', $services);
?>