I'm a newbie trying to use Yii for some interesting projects.
Using Tutorial :http://www.yiiframework.com/doc/guide/1.1/en/quickstart.first-app
When I try to access htpp://localhost/testdrive/index.php?r=user I am getting following error:
Unable to resolve the request "user".
Troubleshooting attempted:
- Checked permissions.
- Checked main.php file , I have not touched the default except for enabling gii and mysql connection.
The error log states:
2012/12/19 16:18:19 [error] [exception.CHttpException.404] exception 'CHttpException' with message 'Unable to resolve the request "user".' in /opt/csw/apache 2/share/htdocs/yii12/framework/web/CWebApplication.php:287
Stack trace:
#0 /opt/csw/apache2/share/htdocs/yii12/framework/web/CWebApplication.php(142): CWebApplication->runController('user')
#1 /opt/csw/apache2/share/htdocs/yii12/framework/base/CApplication.php(162): CWebApplication->processRequest()
#2 /opt/csw/apache2/share/htdocs/testdrive/index.php(13): CApplication->run()
#3 {main}
REQUEST_URI=/testdrive/index.php?r=user
Please help!? :-)
Page 1 of 1
Error - Trying To Set Up Testdrive App(From Yii Tutorial)
#2
Posted 20 December 2012 - 03:50 AM
You did create the user model and CRUD ?
Find more about me.... btw. Do you know your WAN IP?
#3
Posted 20 December 2012 - 10:58 AM
Maurizio Domba, on 20 December 2012 - 03:50 AM, said:
You did create the user model and CRUD ?
Yes I did . I followed all the steps in the tutorial up until the point where I have to access :
localhost/testdrive/index.php?r=user
There was no error I encountered in earlier steps. There was a permissions issue that I had to fix (to allow nobody apache user have access to testdrive directory under WebRoot)
#4
Posted 20 December 2012 - 01:44 PM
Just to be sure.. .check that you have the UserController and that the permissions are right.
Find more about me.... btw. Do you know your WAN IP?
Share this topic:
Page 1 of 1

Help











