Yii Framework Forum: yii-auth - Accessing the Web UI by running ?r=authorization/main - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

yii-auth - Accessing the Web UI by running ?r=authorization/main Rate Topic: -----

#1 User is offline   pannet1 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 02-June 10

Posted 02 June 2010 - 08:52 AM

yiians,

Accessing the Web UI by running the below request

?r=authorization/main

results in below response

Error 404
Unable to resolve the request "authorization/main".

what am i doing wrong.
0

#2 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 03 June 2010 - 02:44 AM

Hi and welcome

1. Do you have a controller called AuthorizationController?
2. Do you have an action in that controller called actionMain?
0

#3 User is offline   pannet1 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 02-June 10

Posted 03 June 2010 - 07:24 AM

View PostMike, on 03 June 2010 - 02:44 AM, said:

Hi and welcome

1. Do you have a controller called AuthorizationController?
2. Do you have an action in that controller called actionMain?


Dear Mike,

No, because, the yii-auth Documentation does not tell me to do so.

I have done the Installation part and struck up at the Role Assignment step.

There is neither AuthorizationController method nor actionMain. Please guide me.

Thanks in anticipation
0

#4 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 03 June 2010 - 07:53 AM

Oh, sorry, i missed that you where talking about an extension here. No idea how to fix then, you should ask the extension author.
0

#5 User is offline   pannet1 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 02-June 10

Posted 03 June 2010 - 08:42 AM

View PostMike, on 03 June 2010 - 07:53 AM, said:

Oh, sorry, i missed that you where talking about an extension here. No idea how to fix then, you should ask the extension author.


Dear Mike,

Just to clarify.

1) core yii files are under
/webroot/protected/.

2) the yii-auth module is under
/webroot/protected/modules/authorisation/.

so from which line of code, does YII know that we are requesting a page under 'modules' rather than the 'core'.
my testdrive application is working fine and i can make requests like ?r=site/index which is under 'core'.

I think if i ask the right questions you may be able to guide me. Thanks.
0

#6 User is offline   pannet1 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 02-June 10

Posted 03 June 2010 - 08:43 AM

View PostMike, on 03 June 2010 - 07:53 AM, said:

Oh, sorry, i missed that you where talking about an extension here. No idea how to fix then, you should ask the extension author.


Dear Mike,

Just to clarify.

1) core yii files are under
/webroot/protected/.

2) the yii-auth module is under
/webroot/protected/modules/authorisation/.

so from which line of code, does YII know that we are requesting a page under 'modules' rather than the 'core'.
my testdrive application is working fine and i can make requests like ?r=site/index which is under 'core'.

I think if i ask the right questions you may be able to guide me. Thanks.
0

#7 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 03 June 2010 - 08:46 AM

I've hardly used any modules in my apps. Yii knows from the route, which module / controller it should look for. See here for details on routes:

http://www.yiiframew...ontroller#route

But like i said: Don't know, which route this extension is expecting.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users