I'm guessing you meant component, because you have to set the form
class. However, if you use the form as a partial, what variable do
you have to pass to it in order for errors to work? I tried passing
'sf_request' => $sf_request.
Although, now thinking about, I don't think this can work because no
matter what I'm overwriting the form with a new form class.
What logic would I need in my form component other than:
{{{
<?php
class sfGuardAuthComponents extends sfComponents
{
public function executeForm()
{
$class = sfConfig::get('app_sf_guard_plugin_signin_form',
'sfGuardFormSignin');
$this->form = new $class();
}
}
}}}
Thanks for the the help Jon
-- Stephen Ostrow
On Oct 4, 2:36 pm, "Jonathan Wage" <[EMAIL PROTECTED]> wrote:
> I override `sfGuardAuth/templates/signinSuccess.php` and extract the login
> form to a partial and use the partial `_signin_form.php` in
> `signinSuccess.php` and everywhere else I want to use it.
>
> - Jon
>
> On Sat, Oct 4, 2008 at 2:49 AM, isleshocky77 <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > I'm not sure if this should be a ticket or which it should go in since
> > I know sfDoctrineGuardPlugin is now not getting anything sfGuardPlugin
> > doesn't have. I also wanted other peoples views on this.
>
> > I was thinking that it would be better for sfGuardAuth/signin to be
> > made up of a component inside in the action's template. I went to try
> > and display the login form in my application template and realized I
> > would have a hard time doing this cleanly because the layout doesn't
> > have a controller to initialize the form class. But it would be very
> > clean if I could call that component.
>
> > Any help on this would be greatly appreciated.
>
> > -- Stephen Ostrow
>
> --
> Jonathan H. Wage
> Open Source Software Developer & Evangelisthttp://www.jwage.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---