|
|
This is my model:
<?php
class result extends AppModel{
var $name='Result';
}
--------------
The entire action ( i didnt include the whole thing before)
function findrace()
{$this->set('title_for_layout','Connecticut Industrial Ski Council
- Results - Find by Person');
//Set drop down fields
$this->set('locations',$this->Result->find('list',array(
'fields' =>
array('location','location'),'group'=>array('location'))));
$this->set('seasons',$this->Result->find('list',array(
'fields' => array('season','season'),'group'=>array('season'))));
$this->set('races',$this->Result->find('list',array(
'fields' => array('racenum','racenum'),'group'=>array('racenum'))));
$this->set('classs',$this->Result->find('list',array(
'fields' => array('class','class'),'group'=>array('class'))));
if (!empty($this->data['Result']['location'])) {
$this->redirect(array("controller" => "results",
"action" => $this->data['Result']['location']));
//$this->setAction($this->data['Result']['location'],$this-
>data['Result']['season'],$this->data['Result']['racenum'],$this-
>data['Result']//['sex'],$this->data['Result']['class']);
}else{$this->Session->setFlash('Season is required.');}
}
-------------------------
Would it be in the view associated with the redirect?
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 cake-php@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
cake-php+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
|
|