[email protected]
[Top] [All Lists]

Re: action redirect not working

Subject: Re: action redirect not working
From: Briko03
Date: Wed, 17 Nov 2010 20:07:59 -0800 PST
This is my model:
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
'fields' =>
'fields' => array('season','season'),'group'=>array('season'))));
'fields' => array('racenum','racenum'),'group'=>array('racenum'))));
'fields' => array('class','class'),'group'=>array('class'))));

                if (!empty($this->data['Result']['location'])) {

                        $this->redirect(array("controller" => "results",
                      "action" => $this->data['Result']['location']));

                        }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 [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 

<Prev in Thread] Current Thread [Next in Thread>