Welcome Guest, Not a member yet? Register   Sign In
Disable debug output in view for error messages
#1

Hi,

if there is an validation error, i use my template for the error message. The output contains such a comment: DEBUG-VIEW START 1 APPPATH/Validation/Views/error.php. Can i disable the output for this view? I know in Config/Toolbar.php i can remove the view collector, but i don't want to disable it for all views.
Reply
#2

Set the option debug.
See https://www.codeigniter.com/user_guide/g....html#view
Reply
#3

(This post was last modified: 02-06-2024, 03:18 PM by groovebird.)

Ah this sounds good. Can i set this option for the view i defined in the validation config? Do you know where the view is called?

I did it this way:
https://codeigniter.com/user_guide/libra...figuration
Reply
Reply
#5

Thank you. Some days ago it was working without all the adjustment and from today i always got this debug output. I will try it.
Reply
#6

An additional info: I have enabled the debug toolbar and by clicking on the view tab you can enable / disable the debug output
Reply




Theme © iAndrew 2016 - Forum software by © MyBB