Yii Framework Forum: Login Explained In Demo Not Working - Yii Framework Forum

Jump to content

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

Login Explained In Demo Not Working Rate Topic: -----

#1 User is offline   yiibeginer 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 11-September 13

Posted 11 September 2013 - 04:05 AM

I am a very very new to Yii framework and started to learn after knowing its popularity.

I have downloaded Yii 1.1.1.4 version of Yii framework. I have followed the Basic Guide to Blog Application. But I am not able to login to system using username:demo and password:demo. Even the tutorial has different code than bundled with Framework from site.

I have followed instructions to This Steps

Kindle help me out.
0

#2 User is offline   Abhishek Shah 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 90
  • Joined: 20-July 12
  • Location:New Jersey,USA

Posted 11 September 2013 - 07:17 AM

Have you make a new table for user login?If not ,your authentication code in userIdendity,should be
$users=array(
// username => password
'demo'=>'demo',
'admin'=>'admin',
);
than,you will be able to login.
If you have make a user table,go to gii ,make a model & crud of it,than in model make changes as per your link.Means add methods.In this case,validation will be made from your user table,so you will not able to login with basic demo=>demo.You have to login with values of username and password in your user table.
Feel free to ask for help,
Abhishek.
Freelancer.
Yii Basic Gii With Export Pdf Excel
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