[eluser]John5788[/eluser]
Hello,
I am new to CodeIgniter and I am trying to catch an undefined variable. I cannot catch it with isset($var), because once I try it when $var hasn't been defined, CodeIgniter goes ahead and catches it for my with an error message.
I like the error message, but I would like to catch this specific case myself.
I am trying to accomplish injecting a $title variable into my <title> tag if $title is defined. If it is not defined, I will use a default title tag.
How can I catch this case gracefully without any errors (also without disabling errors)?