Welcome Guest, Not a member yet? Register   Sign In
I do not want to HIDE notices. I want to make them not a "notice"
#1

[eluser]internut[/eluser]
So if i get this in the error log:

ERROR - 2011-06-30 22:35:01 --> Severity: Notice --> Undefined variable: fieldNames

its a function within a model returning values from a DB Query.

End of function / method:


return $fieldNames;

do i just do a

$fieldNames = '';

at the top. Which will give me no error... I do not like the @ Suppress method.

What is the best practice?

CI logs all of this undefined errors.

I'd like a clean log file Smile

Any quick insight I'm very grateful for! I'm pretty savvy with CI, but now I'm on to making it error free in logs Smile

No errors go to screen. Just in the log file as I have error logging set to:

error_reporting(E_ALL ^ E_NOTICE);

Thanks much!


Messages In This Thread
I do not want to HIDE notices. I want to make them not a "notice" - by El Forum - 06-30-2011, 08:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB