I want to embed a form for use in the admin generator but I want to be
able to customise the output of the embedded form in a template.
My first idea was to simply overide the sfForm render method in my
embedded form like this...
public function render($attributes = array())
{
sfLoader::LoadHelpers(array('Partial'));
return get_partial('sfPolaroids/admin', $vars = array('form' =>
$this));
}
but it seems that when a form is embedded, it is not rendered using
the __toString() method of the form.
Does anyone know how to implement this??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---