Currently I have
private function getYears()
{
return array('Test1', 'Test2', 'Test3', 'Test4');
}
in the index:
$years = $this->getYears();
and in the view
<select>
<?php foreach ($years as $row):?>
<option><?=$row?></option>
<?php endforeach;?>
</select>
The select box doesn't get filled ?
How can I fix this ?
[edit]
So far I noticed that the $years is empty and the getYears is not being called.. no idea why yet..
$pagesand notyears?var_dump($years);to see what inside$years