Help with User Registration Function? |
[eluser]Buso[/eluser]
The documentation is pretty clear and straight forward =S A model is nothing but a class that extends Model, located at /models, and loaded from within your controller by $this->load->model('some_model'); Then, you can use it like $this->some_model->some_method(); The documentation has working examples http://userguide/general/models.html To check a user against the db, you can do something like this (inside the model! always): Code: $query = $this->db->where('user',$data['user']) You could also check a full working auth system like this: http://ellislab.com/forums/viewthread/145263/ Maybe it can save you some hours of work, but if you don't know how to use models yet I would concentrate on that. |
Messages In This Thread |
Help with User Registration Function? - by El Forum - 07-02-2010, 06:31 AM
Help with User Registration Function? - by El Forum - 07-02-2010, 07:30 AM
Help with User Registration Function? - by El Forum - 07-02-2010, 08:00 AM
Help with User Registration Function? - by El Forum - 07-02-2010, 11:47 AM
Help with User Registration Function? - by El Forum - 07-02-2010, 12:22 PM
Help with User Registration Function? - by El Forum - 07-02-2010, 12:23 PM
Help with User Registration Function? - by El Forum - 07-02-2010, 02:46 PM
Help with User Registration Function? - by El Forum - 07-02-2010, 02:51 PM
Help with User Registration Function? - by El Forum - 07-02-2010, 04:20 PM
Help with User Registration Function? - by El Forum - 07-02-2010, 06:36 PM
Help with User Registration Function? - by El Forum - 07-03-2010, 03:29 AM
Help with User Registration Function? - by El Forum - 07-03-2010, 06:29 AM
Help with User Registration Function? - by El Forum - 07-04-2010, 06:30 AM
|