I am really new to YII framework so bear with me guys. =) here's my code.
public function actionList()
{
$Employee = new employee;
$data = array('employee' => $Employee);
$this->render('Employee_Display', $data);
}
<tbody>
<tr>
<?php foreach($employee as $row): ?>
<td><?php $row['employee_firstname']; ?></td>
<?php endforeach; ?>
</tr>
</tbody>
I want to get the list of employees names and display it on a tabular form.