Yii-User Registration Form Change Registration form text fields,
#1
Posted 23 August 2013 - 02:17 AM
I am new to yii, i have to develop a user Registration form, for this purpose i am using Yii-user and yii-Rights Extension,
I searched a lot, but did couldn't found the solution,
Please suggest me some solution,
For Example: Already existing fields are UserName, Password, retype-Password, Email, FirstName, LastName and DOB,
but the fields required to me are,
- UserName
- FirstName
- LastName
- MiddleName
- DateofBirth
- EmailAddress
- Address
- City
- State
- Zip
- Country
- ContactNumber
how I have to change Model, Controller and View as well,
Please Reply, Thanks.
#2
Posted 23 August 2013 - 02:53 AM
Add new fields to the User,RegistrationForm models
Wiwo inc.
| Mobile: 919995504508
#3
Posted 23 August 2013 - 02:55 AM
example
change According to your fields
public function defaultScope() { return CMap::mergeArray(Yii::app()->getModule('user')->defaultScope,array( 'alias'=>'user', 'select' => 'user.id, user.username, user.email, user.create_at, user.lastvisit_at, user.superuser, user.status, user.country, user.region, user.website_url,user.company_name, user.city, user.state, user.nationality, user.phone,user.address,user.zip_postal_code', )); }
Wiwo inc.
| Mobile: 919995504508
#4
Posted 23 August 2013 - 02:56 AM
public function rules() {
Wiwo inc.
| Mobile: 919995504508
#5
Posted 23 August 2013 - 02:57 AM
class RegistrationForm extends User {
Wiwo inc.
| Mobile: 919995504508
#6
Posted 23 August 2013 - 02:59 AM
thats it!!
Wiwo inc.
| Mobile: 919995504508
#9
Posted 26 August 2013 - 04:54 AM
#10
Posted 27 August 2013 - 12:27 AM
Shekeel, on 26 August 2013 - 04:54 AM, said:
Thanks.
whats the problem now?
Wiwo inc.
| Mobile: 919995504508
#11
Posted 27 August 2013 - 03:10 AM
Please tell me about this,
How to enable yii-user to send activation mail to newly registered users,
I have installed xampp in D:\xampp\ and my project lies @ D:\xampp\htdocs\project
after this step I think I will change what i needed,
Thanks....
#12
Posted 27 August 2013 - 04:22 AM
Shekeel, on 27 August 2013 - 03:10 AM, said:
Please tell me about this,
How to enable yii-user to send activation mail to newly registered users,
I have installed xampp in D:\xampp\ and my project lies @ D:\xampp\htdocs\project
after this step I think I will change what i needed,
Thanks....
configure your mail server.
Wiwo inc.
| Mobile: 919995504508