[eluser]ikhnaton2[/eluser]
Yes I see the login form and there should be 3 cases:
1. Write nothing in username/password and hit login
This was not working until i change all shorthand <?=...> into <?php echo ...>
Now, it writes "This is not working" and come back to login form which is expected as it violated validation rules.
2. Write incorrect data and hit login -> nothing happen, page stay with the login form
3. Write good username/password and hit login same as #2
Questions for better understanding:
1. Where should the form go when press "Login", form opening says "user/login" as:
Code:
<?=form_open('user/login',array('id' => 'userlogin'));?>
but there's no function in the "user" controller called "login".
2. In "user" controller, "checkLogin" function, there's a line:
Code:
$uid = $this->user_model->getUserId($username,"users");
but there's no "getUserId" in "user_model" class
Thanks for advising