Welcome Guest, Not a member yet? Register   Sign In
Portable functions in OOP?
#12

[eluser]tonanbarbarian[/eluser]
it has become rather confusing trying to work out where the problem lies as it is no longer clear what error you are getting and where it is appearing along with the process flow you are trying to use to get there

However a thought just came to me
I have seen a few instances where people have come across problems be using the same name for some methods as for objects.

So strange as it may sound try the following
change the login method in the auth_model to something like check_login
and of course change all the code that calls it

the issue might be that you have a controller class with a method called login, and a model with a method called login.
Despite the fact that you are calling $this->auth_model->login() there is issues because of the way CI instanciates models and controllers.

Have seen the same issue with people who have methods called "view" and then they try to call $this->load->view and they get unexpected errors or weird things happening

if that does not work then turn on the debugging in the config file and put break points in the code and step through it yourself and you should be able to trace the code from index.php all the way to the error and eventually you will find the problem. In most cases I find that is quicker than posting on the forums, particularly if time lines are tight


Messages In This Thread
Portable functions in OOP? - by El Forum - 12-21-2007, 04:16 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 05:52 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 05:54 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 06:02 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 06:05 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 06:10 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 06:13 PM
Portable functions in OOP? - by El Forum - 12-21-2007, 11:53 PM
Portable functions in OOP? - by El Forum - 12-22-2007, 12:42 AM
Portable functions in OOP? - by El Forum - 12-22-2007, 12:43 AM
Portable functions in OOP? - by El Forum - 12-22-2007, 04:41 PM
Portable functions in OOP? - by El Forum - 12-22-2007, 05:34 PM
Portable functions in OOP? - by El Forum - 12-22-2007, 10:04 PM
Portable functions in OOP? - by El Forum - 12-22-2007, 11:44 PM
Portable functions in OOP? - by El Forum - 12-23-2007, 12:27 AM
Portable functions in OOP? - by El Forum - 12-23-2007, 12:30 AM
Portable functions in OOP? - by El Forum - 12-23-2007, 12:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB