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.
Page 1 of 1
yii-auth - Accessing the Web UI by running ?r=authorization/main
#2
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?
1. Do you have a controller called AuthorizationController?
2. Do you have an action in that controller called actionMain?
#3
Posted 03 June 2010 - 07:24 AM
Mike, 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?
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
#4
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.
#5
Posted 03 June 2010 - 08:42 AM
Mike, 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.
#6
Posted 03 June 2010 - 08:43 AM
Mike, 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.
#7
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.
http://www.yiiframew...ontroller#route
But like i said: Don't know, which route this extension is expecting.
Share this topic:
Page 1 of 1

Help














