Webmaster's Community

Designing and Development => Open Source => Yii PHP Framework Support => Topic started by: phpdeveloper on September 15, 2012, 12:14:51 PM

Title: Problem in Registration in yii framework
Post by: phpdeveloper on September 15, 2012, 12:14:51 PM
Hi,
 
i am new to yii. I create an an application using yii now have problem with the registration i provide a link to register new users but some one click on this this send the user to the login page how to solve this problem please help .

every response appreciated
 
Thanks in advance
Title: Re: Problem in Registration in yii framework
Post by: perks on September 17, 2012, 12:24:13 PM
you have to manfully set the permission in yii i know yii not allowed every user to CRUD when we create CRUD in yii with gii module.  permission denied ed    for the anonymous user so you can check out access rules i hope this will help you .
Title: Re: Problem in Registration in yii framework
Post by: phpdeveloper on September 18, 2012, 05:51:56 AM
Thanks perks Now i am able to handle this kind of problem in future and thanks again for your quick reply
Title: Re: Problem in Registration in yii framework
Post by: rahul on September 19, 2012, 05:06:01 AM
HI,
       i am also facing the same problem can you give me code for overcome from this problem Please.

Thanks in advance
Title: Re: Problem in Registration in yii framework
Post by: phpdeveloper on September 19, 2012, 11:05:01 AM
you can change your accessRules to solve your problem in siteController or in userController like this
Code: [Select]
return array(
array('allow',  // allow all users to perform 'index' and 'view' and create action
'actions'=>array('index','view','create'),
'users'=>array('*'),
),