John

thanks, your idea sounds good.
So i think, i'd like to make the cell content a link and when i click
on it, it should load a view. This view should only show datarows,
with a equal cell (compared with the cell i clicked) inside.
Is that understandable?

[conroller action]
function view()
{
    $this->set('staffs', $this->paginate('Staff', array(??? equal
$fieldname ???)));
}
[/]

[example link from one column (forename) in the view]
<td><?php echo $html->link($staff['Staff']['forename'],
array('controller' => 'staffs', 'action' => 'view', "fieldname" =>
$staff['Staff']['forename'])); ?></td>
[/]

The problem is, that the function has to be dynamical. it should work
for all cells.
And how do i write a comparison in paginate?

Thanks very much!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to