display moons try 2
This commit is contained in:
@@ -22,7 +22,7 @@ class MoonsController extends Controller
|
|||||||
$html = '';
|
$html = '';
|
||||||
foreach($moons as $moon) {
|
foreach($moons as $moon) {
|
||||||
//Setup formats as needed
|
//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']);
|
$rentalEnd = date('d.m.Y', $moon['RentalEnd']);
|
||||||
//Add the data to the html string to be passed to the view
|
//Add the data to the html string to be passed to the view
|
||||||
$html .= '<tr>';
|
$html .= '<tr>';
|
||||||
|
|||||||
Reference in New Issue
Block a user