http://redotheweb.com/2008/08/08/add-request-method-requirement-to-routing-in-symfony-11/

<http://redotheweb.com/2008/08/08/add-request-method-requirement-to-routing-in-symfony-11/>Does
that shed any light for you?

On Mon, Dec 6, 2010 at 11:52, Michael Smith <sitecr...@gmail.com> wrote:

> I have the following routing.yml:
> lead_import_upload:
>  url:     /lead/import.:sf_format
>  param:   { module: lead, action: importUpload, sf_format: html }
>  requirements: { sf_method: get }
>
> lead_import_config:
>  url:     /lead/import.:sf_format
>  param:   { module: lead, action: importConfig, sf_format: html }
>  requirements: { sf_method: post }
>
> and an importUploadSuccess.php:
> <form method="post" action="<?php echo url_for('lead_import_config') ?
> >" enctype="multipart/form-data">
>  <?php echo $form ?>
>  <input type="submit" value="<?php echo __('Save') ?>" />
> </form>
>
> But when the form is submitted the importUpload action is called again
> instead of the importConfig action. The form's method is post am I
> missing something here?
>
> Thanks,
> Michael
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> 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<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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