display moons try 2

This commit is contained in:
2018-10-25 21:53:49 -05:00
parent 746b12db10
commit d354f91114

View File

@@ -22,7 +22,7 @@ class MoonsController extends Controller
$html = '';
foreach($moons as $moon) {
//Setup formats as needed
$spm = $moon['System'] . ' - ' . $moon['Planet'] . ' - ' . $moon['Moon'];
$spm = $moon->System . ' - ' . $moon->Planet . ' - ' . $moon->Moon;
$rentalEnd = date('d.m.Y', $moon['RentalEnd']);
//Add the data to the html string to be passed to the view
$html .= '<tr>';