Hello,
how can i pass a variable from a view to the associated controller? I
need this because i want to reload the view with other values for
paginate.
I'd like to do this inside "html->link". The two variables are named
"value" and "temp".
"temp" should contain the database field in the suitable form, that i
can insert it correct. "value" cotains the value for paginate.
[some controller code]
$this->paginate('Person', array('Person."$temp"' => $value))
[/code]
[view code]
<td><?php echo $html->link($row['Person']['forename'],
array('controller' => 'persons', 'action' => 'view', "forename" =>
$temp, $row['Person']['forename'] => $value)); ?></td>
[/code]
I don't get it working. :(
Thanks if someone can help!
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, reply using "remove me" as the subject.