Why is it that submitting a form tag using <module>_object route
results in a 404 exception.
Say my module is foo
<form action="<?php echo url_for('foo/cancel?id='.$form->getObject()-
>getId().'&'.http_build_query($helper->getFormUrlParams($form), '',
'&')) ?>" method="POST" <?php if($form->isMultipart() and print
'enctype="multipart/form-data"')?>>
This is the generated link
/frontend_dev.php/foo/8/cancel
When the form is submitted, incorrect route will match
Mar 26 11:32:06 symfony [info] {sfPatternRouting} Match route
"default" (/:module/:action/*) for /foo/8/cancel with parameters array
( 'cancel' => true, 'module' => 'foo', 'action' => '8',)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---