Hi there,

i created a module (CRUD) and used the auto generated _form.php
partial to use it in another module.
Its actually like a blog / comment thing, where i used the _form.php
of my comment module to include it into my blog showSuccess.php page.

When i validate my form and it is not valid i would like to refer back
to the showSuccess.php page of by blog module showing the comments
form with the validation errors.

My solution was a $this->redirect() when $form->isValid() fails..
but this is killing my $form variable and therefore is not displaying
any error messages on my blog page.

The only possible solution i found was something like
$this->setTemplate('../../blog/templates/show');


..but this requires that i repeat all the controller stuff of my
showExecute() Method of my blog module, which is probably the most
wrong thing i can do.


So how do i do this right?

Any help is appreciated!
Thanks

--~--~---------~--~----~------------~-------~--~----~
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=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to