I finally an answer! I had compat_10 mode enabled, and did not remove
the corresponding yml file in the validate folder (from Symfony
1.0.x). I thought it would be simply ignored and that I could clean up
later, but apparently it is not ignored and it interferes with
validation.

Frédéric

On 2 mar, 10:22, latourfl <[email protected]> wrote:
> I am following Listing 1-8 from Forms in Action, Chapter 1 to create
> an action that generates and post-processes the form:
> [url]http://www.symfony-project.org/book/forms/1_1/en/01-Form-Creation
> [/url]
>
> I want to make sure I understand what occurs once the form get
> submitted using POST. Using code below, echo "1" will print "1" when
> the form is first generated. If I understand it right, once submitting
> the form, lines before the if should also be executed, and "1" should
> be printed, right? It is not in my case, is there any reason why?
>
> actions.class.php:
> [CODE]
> public function executeMyAction($request) {
>
>   echo "1";
>   $this->form = new MyForm();
>   if($request->isMethod('post')) {
> ...
> [/CODE]
>
> myActionSuccess.php:
> [CODE]
> <form action="<?php echo url_for('myModule/myAction') ?>"
> method="POST">
> ...
> [/CODE]
>
> Thanks,
> Frédéric
--~--~---------~--~----~------------~-------~--~----~
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