Extending the XenForo_Controller


Well-known member
Should I ever want to extend the XenForo_Controller, what code event listener should I use?

It's clearly not the load_class_controller

I would like to override _validateField or _getFieldValidationInputParams

Chris D

XenForo developer
Staff member
Am I reading threads in the wrong order?

Those classes are normally in the DataWriter so you would use load_class_datawriter

But I think you made a post after this so I think you know this already... :unsure:


Well-known member
yeah, it would be easier if I could override this (I can't see how you can though),

but I can do what I need to do in the datawriter ...

Yes, I started looking at the datawriters once I gave up trying to extend XenForo_Controller ;)