Yii Framework Forum: Page Not Found 'login' - Yii Framework Forum

Jump to content

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

Page Not Found 'login' Rate Topic: -----

#1 User is offline   FragMaster B 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 06-October 08
  • Location:SoCal

Posted 09 October 2008 - 12:19 PM

I just started going through the "Creating first Yii Application" section. The command line tool seemed to work fine. I went to http://localhost/projectname/ and it did show the first page. Clicking the login link results in a page not found. Did I miss a step?
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,902
  • Joined: 04-October 08
  • Location:DC, USA

Posted 09 October 2008 - 12:20 PM

Did you make any change to the code generated by yiic?
What is the detailed error information?
0

#3 User is offline   FragMaster B 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 06-October 08
  • Location:SoCal

Posted 09 October 2008 - 12:26 PM

The only change I made was to the connectionString (mysql with username and password, instead of sqlite). I'll try again from a clean slate.


Page Not Found
The system is unable to find the requested action "login".

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
2008-10-09 10:20:55 Apache/2.0.63 (Win32) Yii Framework/1.0a

0

#4 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,902
  • Joined: 04-October 08
  • Location:DC, USA

Posted 09 October 2008 - 12:35 PM

I guess you created a User model and UserController? Did you overwrite any existing files during the file generation?
0

#5 User is offline   FragMaster B 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 06-October 08
  • Location:SoCal

Posted 09 October 2008 - 12:46 PM

Doh! That is correct. When I created a user model it did ask me to overwrite a file.
0

#6 User is offline   FragMaster B 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 06-October 08
  • Location:SoCal

Posted 09 October 2008 - 01:17 PM

OK, started over. Before executing the "crud User" command, I made a copy UserController.php. Then, after overwriting the original UserController.php, I merged the newly created UserController file with my copy. Now I have a login and crud controls.

Could/should the code generated from the crud command extend that class instead of overwrite it?
0

#7 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,902
  • Joined: 04-October 08
  • Location:DC, USA

Posted 14 October 2008 - 05:56 AM

I changed the yiic webapp command so that it no longer creates the UserController to avoid this issue.
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