Hmmm...

I was getting exactly the same issue after a 1.2 branch framework
update.

The revision that causes this behaviour is r20469 (http://trac.symfony-
project.org/changeset/20469). Updating the framework back to 20468
will temporarily solve your problem, however I strongly advise you to
update the requirements on your routes.

@Kris applied the default method requirements directly in the
constructor to provide accurate display when using app:routes. So if
you did extend the sfRequestRoute class you may have some changes to
bring, specifically arount the matchesParameters or matchesUrl
methods.

Regards,

Antoine
http://letscod.com

On Jul 29, 1:59 pm, "PieR." <pbaz...@gmail.com> wrote:
> Context : WAMP - php 5.2.8 - Symfony 1.2.8
>
> I've a form wich is submited to the same page (to filter my table
> results). The URL takes 2 parameters : id, slug
>
> The URL looks like that : frontend_dev.php/fr/category/1/aeg
>
> The form tag in code:
>
> <form action="<?php echo url_for('@ads_category?id='.$id.'&slug='.
> $slug) ?>" method="post">
>
> The form tag in the HTML source :
>
> <form action="/frontend_dev.php/fr/category/1/aeg" method="post">
>
> When the form is submited, the error is :
>
> 404 | Not Found | sfError404Exception
> Empty module and/or action after parsing the URL "/fr/category/1/
> aeg" (/).
> stack trace
>
>     * at ()
>       in SF_SYMFONY_LIB_DIR\controller\sfFrontWebController.class.php
> line 44 ...
>               41.
>               42.       if (empty($moduleName) || empty($actionName))
>               43.       {
>               44.         throw new sfError404Exception(sprintf('Empty
> module and/or action after parsing the URL "%s" (%s/%s).', 
> $request->getPathInfo(), $moduleName, $actionName));
>
>               45.       }
>               46.
>               47.       // make the first request
>     * at sfFrontWebController->dispatch()
>       in SF_SYMFONY_LIB_DIR\util\sfContext.class.php line 159 ...
>              156.    */
>              157.   public function dispatch()
>              158.   {
>              159.     $this->getController()->dispatch();
>              160.   }
>              161.
>              162.   /**
>     * at sfContext->dispatch()
>       in SF_ROOT_DIR\web\frontend_dev.php line 13 ...
>
> (...)
>
> request ...
>
> parameterHolder:
>   filterads: { sort: newest, country: '', _csrf_token:
> 708c130b1cf77dd344102def785cbc1d }
> attributeHolder: {  }
>
> When I set the form method to GET, it works '''
>
> Then, I think the POST method delete/loose the action/module/params of
> the URL in the parameterHolder !
>
> Thank to reply as fast as possible, I've no fix, and no idea to do
> this in a different way...
--~--~---------~--~----~------------~-------~--~----~
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