[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
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
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!