symfony2 アーキテクチャーと便利な FosUserBundle を使用してユーザーを処理する新しいプロジェクトを開始しています。
私のアプリケーションには、ユーザーとエンタープライズの 2 種類のユーザーがいます。
ユーザーフォームを作成しました(フォームが埋め込まれています)。今、EntrepriseForm (別の埋め込みフォーム) を作成したいのですが、FosUserConfiguration で 1 つの登録フォーム タイプしか許可されていないため、行き詰まっています。
それが役立つ場合は、config.yml がどのように見えるかを次に示します。
fos_user:
db_driver: orm # other valid values are 'mongodb', 'couchdb' and 'propel'
firewall_name: main
user_class: Digin\UserBundle\Entity\User
registration:
confirmation:
from_email: # Use this node only if you don't want the global email address for the confirmation email
address: xxx@xxx.org
sender_name: xxx
enabled: true # change to true for required email confirmation
template: FOSUserBundle:Registration:email.txt.twig
form:
type: mybundle_user_registration
handler: fos_user.registration.form.handler.default
name: fos_user_registration_form
validation_groups: [Registration]
私はそれをどのように行うべきかについて何か考えはありますか?