Author Topic: Problem in Registration in yii framework  (Read 17745 times)

phpdeveloper

  • Newbie
  • *
  • Posts: 39
Problem in Registration in yii framework
« 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

perks

  • Newbie
  • *
  • Posts: 11
Re: Problem in Registration in yii framework
« Reply #1 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 .

phpdeveloper

  • Newbie
  • *
  • Posts: 39
Re: Problem in Registration in yii framework
« Reply #2 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

rahul

  • Newbie
  • *
  • Posts: 16
Re: Problem in Registration in yii framework
« Reply #3 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

phpdeveloper

  • Newbie
  • *
  • Posts: 39
Re: Problem in Registration in yii framework
« Reply #4 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('*'),
),

 

X

Do you know?

IfAndBut.com gives you a platform where you can ask questions related to web and internet..
So, why wait..
Join Now!
anything