On Fri, Nov 20, 2009 at 9:16 AM, tirengarfio <[email protected]> wrote:
> Thanks Ashton!
>
> On Nov 20, 10:26 am, Ashton Honnecke <[email protected]> wrote:
>> In processForm.
>>
>> Ashton Honnecke
>> [email protected]
>>
>> On Nov 20, 2009, at 8:20, tirengarfio <[email protected]> wrote:
>>
>> > Hi,
>>
>> > i have created a module (generate-module) in base of Message model.
>> > When i execute message/new and then i push the "Save" button the app
>> > redirects me to the message/edit page.
>>
>> > I have opened actions.class.php and i have checked the createSuccess()
>> > function. I expected to find a redirection to the Edit action but i
>> > have just found this:
>>
>> >   $this->forward404Unless($request->isMethod('post'));
>>
>> >    $this->form = new MensajeForm();
>>
>> >    $this->processForm($request, $this->form);
>>
>> >    $this->setTemplate('new');
>>
>> > Where can i change the redirection?
>>
>> > Bye
>>
>> > Javi
>>
>> > --
>>
>> > You received this message because you are subscribed to the Google
>> > Groups "symfony users" 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 
>> > athttp://groups.google.com/group/symfony-users?hl=
>> > .
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "symfony users" 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/symfony-users?hl=.
>
>
>

you need redirect in processForm

protected function processForm(sfWebRequest $request, sfForm $form)
  {
    $form->bind($request->getParameter($form->getName()),
$request->getFiles($form->getName()));

    if ($form->isValid())
    {
       /*******************HERE ***********************/
      $this->redirect('recibos/index');
    }
  }

--

You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=.


Reply via email to