First you need to understand what is embed form, read "More with Symfony"
book
http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms

In your UserForm.class.php

configure method :
after generating schema: your base User model built in getUserProfile()
method.


$profileForm = new UserProfileForm($this->getObject->getUserProfile());
so this mean, embed UserProfileForm passing UserProfile object
into UserForm.

$this->embedForm('profile', $profileForm);

now you have 'profile' widget in your UserForm.

You can call in template $form['profile'].


Good Luck


Erkhembayar Gantulga

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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