Ah, the URL problem is solved. I had to use url_for('user_activate',
$user), and not url_for('@user_activate', $user) (mind the @).

But, the form problem still remains.
When I submit my form, it says
"Fatal error: Call to undefined method sfRoute::getObject() in /home/
snuber/domains/snuber.net/public_html/apps/website/modules/user/
actions/actions.class.php on line 59"

This is my form now:
<form id="form_user_activate" action="<?php echo url_for
('user_activate', $user) ?>" method="post" enctype="multipart/form-
data">


On 9 okt, 09:50, Alexandre SALOME <[email protected]> wrote:
> Sure, your configuration is OK.
>
> Maybe the routing match another route before this one.
>
> Please check in the logs and tell us,
>
> look if you do you have any other rule that could catch your url before ?
>
> Use the task *./symfony app:routes websites* to get the list of the app
> routes.
>
> Alexandre
>
> 2009/10/9 HAUSa <[email protected]>
>
>
>
>
>
> > Can someone help me with this please?
> > It's really becoming an obstacle in my development process now... :(
>
> > On 8 okt, 21:01, HAUSa <[email protected]>
> > wrote:
> > > I have this route:
>
> > > user_activate:
> > >   url:     /user/activate/:id
> > >   class:   sfPropelRoute
> > >   options: { model: User, type: object }
> > >   param:   { module: user, action: activate }
>
> > > Now, in the page where that route leads to, I have a form. The form is
> > > being sent to that route again:
> > > <form id="form_user_user_activate" action="/website_dev.php/user/
> > > activate/1" method="post" enctype="multipart/form-data">
>
> > > But, when I post that form, I get this error message:
> > > Fatal error: Call to undefined method sfRoute::getObject() in /home/
> > > snuber/domains/snuber.net/public_html/apps/website/modules/user/
> > > actions/actions.class.php on line 30
>
> > > It is still the very same URL! The route should work, shouldn't it?
>
> --
> Alexandre Salomé -- [email protected]
--~--~---------~--~----~------------~-------~--~----~
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