Re: How to pass a variable from a view to the associated controller?

2010-04-09 Thread sebb86
Ok. I made it working. [controller code] function view($temp, $value) { $this->set('persons', $this->paginate('Person', array('Person.'. $temp => $value))); } [/code] [view code for one table cell (in this example the table cell for column "forename")] link($row['Person']['forename'], array(

How to pass a variable from a view to the associated controller?

2010-04-09 Thread sebb86
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