Disable debug output in view for error messages |
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.
Set the option debug.
See https://www.codeigniter.com/user_guide/g....html#view
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
Oh, you need to replace (extend) Validation class.
https://github.com/codeigniter4/CodeIgni...#L677-L679 https://github.com/codeigniter4/CodeIgni...#L697-L699 SeeĀ https://www.codeigniter.com/user_guide/o...ew::render https://www.codeigniter.com/user_guide/e...asses.html
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.
An additional info: I have enabled the debug toolbar and by clicking on the view tab you can enable / disable the debug output
|
Welcome Guest, Not a member yet? Register Sign In |