I am new in zend framework .I want to show record on view .
But I got an error to showing data .Please help.
Thanks in advance ……..
when i use foreach loop to show record
<?php foreach($this->fetchedData as $showData ){ ?>
<td><?php echo $showData['name'];?></td>
<td><?php echo $showData['address'];?></td>
showing error as : invalid statement used in foreach
This might be the reason :
Your $this->fetchedData may not contain data. And the foreach loop may not be able to handle it……
Try this code :
Let me know if you still face the problem…..?