http://webdesign4.georgianc.on.ca/~100141468/comp2084/todo/clients
问题:http ://webdesign4.georgianc.on.ca/~100141468/comp2084/todo/timesheets/filter2/7
这必须是小写变量或其他东西的问题,但我无法弄清楚。Filter2.ctp IDnameHoursclients编辑
<? foreach($Timesheets as $row): ?>
<tr><td>
<?=$row['Timesheet']['id']?>
</td><td>
<?=$row['Timesheet']['hours']?>
</td><td>
<a href="../../clients/view/<?=$row['client']['name']?>"><?=$row['client]['name']?></a>
</td><td>
<a href="edit/<?=$row['Timesheet']['id']?>">Edit</a>
</td></tr>
<? endforeach; ?>
</table>
时间表控制器过滤器2
function filter2($Client_id) {
$this->set('Timesheets',$this->Timesheet->findAllByClientId($Client_id));
}