Juice
Juice

Reputation: 3063

how to create a custom design for adding a new user in sfDoctrineGuardPlugin

i am new to symfony i would like to create a custom design for adding a new user. how to create a custom design for adding new user in sfDoctrineGuardPlugin .

http://localhost/xxxx/web/backend_dev.php/guard/users/new

i am able to add a new user in this link. but i need to change the design. where i can find the form in which i can change the design. i am not able to find any template folder inside my sfGuardUser module. which is located in plugins\sfDoctrineGuardPlugin\modules\sfGuardUser any one please help me.

Upvotes: 1

Views: 153

Answers (2)

Patrick
Patrick

Reputation: 335

If you don't want your app users to use the backend admin generator to create new users, you may want to check out sfForkedDoctrineApplyPlugin, which gives your users the added benefit of registering as a new user and giving you some control over the whole process. It also comes loaded with the forms you seek and email confirmation etc... I also use it in my own "User" module which allows certain registered users the ability to create child-users for their account. sfForkedDoctrineApplyPlugin extends sfDoctrineGuardPlugin.

Upvotes: 0

yitznewton
yitznewton

Reputation: 810

sfDoctrineGuardPlugin uses the regular admin generator, so you need to add files to your backend app:

apps/mybackendapp/
└── modules
    └── sfGuardUser
        └── templates
            └── newSuccess.php

Upvotes: 1

Related Questions