function index($value1 = null, $value2 = null) {
  if (!empty($value1)) {
    $data['Input']['value1'] = $value1;
    $data['Input']['value2'] = $value2;
    if ($this->Input->save($data)) {
      $this->Session->setFlash('Data saved.');
      $this->redirect('/users');
    }
}

Then in your view the call would be $html->link('Link',
'/input/index/value1/value2');

This is more CakePHP like and definitely gets you away from playing
with the URL or $_GET arrays.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to