Currently my code shows the year from 1885 to 2017. What this does is show the years like so 0 = 1885, 1 = 1886.
What I want is that it shows it like this 1885 = 1885, 1886 = 1886 etc. (This resembles the date a car is built)
$options = [];
for ($x = 1885; $x <= date("Y"); $x++) {
array_push($options, $x);
}
echo $this->Form->select('year', [
$options,
],[
'label' => false,
'class' => 'form-group form-control',
]);
So I was wondering how to fix what I did wrong.