Welcome Guest, Not a member yet? Register   Sign In
How to troubleshoot code in a model?
#1

[eluser]35mm[/eluser]
As I can't echo stuff out from a controller, how do I troubleshoot it?

I've just been building a login system. As it involves calls to the database then creation of sessions and cookies and then more calls to the database, I've put it all in one model and that model reports either true or false back to the controller. Laying it out that way seemed logical to me.

The login system isn't working. No errors, just telling me I'm entering an incorrect username/password - which of course I'm not! Usually I'd move an echo around to different places to narrow down where the issue is, but with CI I obviously can't do that. So how can I get output from the model so I can debug?


Messages In This Thread
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 12:27 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 01:39 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 02:47 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:01 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:06 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:21 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 03:53 AM
How to troubleshoot code in a model? - by El Forum - 02-14-2013, 04:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB