[TUTORIAL] *UPDATED* Using jQuery and CI for a AJAX Login (v0.2) + example rar |
[eluser]Unknown[/eluser]
There is something error!!! ![]() why??? Fatal error: Call to a member function userdata() on a non-object in E:\web\xampp\htdocs\aleh\system\application\views\userLogin.php on line 36
[eluser]dmiden[/eluser]
[quote author="abdee" date="1205072705"]There is something error!!! ![]() why??? Fatal error: Call to a member function userdata() on a non-object in E:\web\xampp\htdocs\aleh\system\application\views\userLogin.php on line 36[/quote] Check that you have loaded the 'session' library in your system/application/config/autoload.php file. If not, just add it to the array, e.g. Code: /* Notice that 'session' is included.
[eluser]BeSublime[/eluser]
So can someone please give me a simple example of the login function in the user controller? This is a great resource but if its truly for the newest of noobs then that function (the form's action) is crucial!
[eluser]BobbyB[/eluser]
Hi, nice tut. Is this in the wiki yet? Could not find it. Could you please post the missing sources for us noobs? Thanks in advance! Keep it up.
[eluser]Khamusa[/eluser]
So, how can i create an user account in this class? You said the class would provide a 'register' function, but it didn't ![]() although, great tutorial! ![]()
[eluser]jcavard[/eluser]
You can see he also said [quote author="Isern Palaus" date="1203013241"]It’s called user and it controls the register/login/logout but I’ll only show the second term [/quote] You can do it yourself based on what you get here. Use a little imagination, do it the way you think and post the blocker you encounter (if any ![]() Hey! this post is almost a year old! Happy bday!!!!!
[eluser]benoa[/eluser]
Thanks for the tutorial. I'm still a beginner with CI but I think it's really a cool framework : easy to learn, smart, efficient. Just like jQuery ![]() This is my first post and I really look forward till I can share my work here.
[eluser]ikhnaton2[/eluser]
Thanks for the tutorial. I've tried it but it doesn't work with me. Could you please help: I've created 1. user.php in application/controllers without Code: $this->load->model("dalia_model"); 2. user_model.php in application/models the same as posted 3. baseHeader.php in application/views as advised adding jQuery scripts in the <head> 4. Then call that view simply from userLogin.php view Code: <?php 5. I go to url: http://localhost/index.php/user. It shows the username and password text boxes and the login button but it does nothing ??!! :-S
[eluser]jcavard[/eluser]
What do you mean by, "it does nothing"? You see the login form? Do you mean, it doesnot submit when you hit the login button? if so, make sure you have an opening and closing form tag somewhere around the fields. Code: <?=form_open('user/login',array('id' => 'userlogin'));?> |
Welcome Guest, Not a member yet? Register Sign In |