ok, i've found the solution:
app.yml:
all:
sf_guard_plugin:
success_signin_url: "/user/edit"
and
public function executeEdit(sfWebRequest $request)
{
$sf_guard_user = $this->getUser()->getGuardUser();
instead of:
// $this->forward404Unless($sf_guard_user = Doctrine::getTable
('sfGuardUser')->find(array($request->getParameter('id'))), sprintf
('Object sf_guard_user does not exist (%s).', $request->getParameter
('id')));
On 14 jan, 16:55, l3ia-etu <[email protected]> wrote:
> hello,
>
> i would like the enduser, after logged on, go to the edit page of his
> profile:
>
> i've modified the file:
> plugins\sfDoctrineGuardPlugin\modules\sfGuardAuth\lib
> \BasesfGuardAuthActions.class.php
>
> public function executeSignin($request)
> ..........
> // return $this->redirect('' != $signinUrl ? $signinUrl :
> '@homepage');
> return
> $this->redirect("user/edit?id=".$user->getGuardUser()->getId
> ());
> .........
>
> but i would prefer modify the app.yml file, because it is more clean:
> all:
> sf_guard_plugin:
> success_signin_url: "/edit/id/".<?php $user->getGuardUser()->getId
> () ?>
>
> but of course the variable $user is not defined there.
>
> (i've created the files
> apps\frontend\modules\sfGuardAuth\actions\actions.class.php
> and modified the code like i've wrote up, that more clean, but not
> very in fact, if we update the version of the plugin, the code could
> change)
>
> so ,how to reach $user->getGuardUser()->getId() in the app.yml ? (or
> perhaps in a template ?)
>
> thanks
--
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.