Yii Framework Forum: N00b: I get a 404 error after generating the model for tbl_user - Yii Framework Forum

Jump to content

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

N00b: I get a 404 error after generating the model for tbl_user Rate Topic: ****- 1 Votes

#1 User is offline   marche 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 14-May 12

Posted 14 May 2012 - 10:46 AM

I get a 404 error when I access localhost/demo/yii/testdrive/index.php?r=user as stipulated on the quickstart guide... O.o

I was able to generate the user on the model generator (it was a success) and I can see the user.php on protected/modules

don't know what Im missing tho...
0

#2 User is offline   Bapi Roy 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 02-February 12
  • Location:Alipurduar, India

Posted 15 May 2012 - 07:14 AM

View Postmarche, on 14 May 2012 - 10:46 AM, said:

I get a 404 error when I access localhost/demo/yii/testdrive/index.php?r=user as stipulated on the quickstart guide... O.o

I was able to generate the user on the model generator (it was a success) and I can see the user.php on protected/modules

don't know what Im missing tho...



Did you create controller and view?
Bapi Roy
0

#3 User is offline   marche 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 14-May 12

Posted 15 May 2012 - 09:14 AM

View PostBapi Roy, on 15 May 2012 - 07:14 AM, said:

Did you create controller and view?


which step is it here?
http://www.yiiframew...start.first-app

I did all the steps up to the point of "Accessing CRUD Pages" where it gave me a 404 error (unable to find user)

Actually, I tried it again now, but it does not give me a 404 error, it just gives me the default page of the testdrive page (the "Welcome to My Web Application"). I tried entering gii again, but nothing happens... I am using it on a different machine though, will that have any impact on the test drive?
0

#4 User is offline   GoodHosting.co Ltd. 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 24-June 12
  • Location:United Kingdom

Posted 24 June 2012 - 06:35 AM

View Postmarche, on 15 May 2012 - 09:14 AM, said:

which step is it here?
...

I did all the steps up to the point of "Accessing CRUD Pages" where it gave me a 404 error (unable to find user)

Actually, I tried it again now, but it does not give me a 404 error, it just gives me the default page of the testdrive page (the "Welcome to My Web Application"). I tried entering gii again, but nothing happens... I am using it on a different machine though, will that have any impact on the test drive?


Gii can only be accessed by those computers you have specifically allowed (by IP address or hostname) in your application configuration file located at protected/config/main.php. Please verify that your new machine is in the allowed list of computers for the Gii module.

Note: Due to board restrictions, I am not able to quote your message as it contains a link... how sad.
0

#5 User is offline   Duarte Bruno 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 25-July 13

Posted 25 July 2013 - 05:10 AM

View PostBapi Roy, on 15 May 2012 - 07:14 AM, said:

Did you create controller and view?

Thank you! That was my problem. I don't know why or how, but I had jumped over this step in the tutorial.
0

#6 User is offline   phphopzter 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 25-July 13

Posted 25 July 2013 - 11:03 PM

I have the same problem too! :( sad they don't even share the solutions on this.
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