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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to