🏆 A full-stack component-based MVC kernel for PHP that helps you write powerful and modern web applications. Write less, have cleaner code and your work will bring you joy.
I am currently working on a Tracy panel which tracks submitted forms and shows errors from these forms.
This is useful for debugging manually rendered forms which don't render all form errors. e.g. datagrids
Problem is it is currently hooked via onStartup event. That works only for components that are created via createComponent*(), have all required parameters for creation available during startup and are not created manually - e.g. via $this['form'] = new Form(); in action*() method. It also changes order of code execution.
Having an onAfterSignal event would solve all of these issues and would also allow me to handle successfully submitted forms (which throw AbortException for redirect) and other signals
I am currently working on a Tracy panel which tracks submitted forms and shows errors from these forms.
This is useful for debugging manually rendered forms which don't render all form errors. e.g. datagrids
Problem is it is currently hooked via
onStartup
event. That works only for components that are created viacreateComponent*()
, have all required parameters for creation available during startup and are not created manually - e.g. via$this['form'] = new Form();
inaction*()
method. It also changes order of code execution.Having an
onAfterSignal
event would solve all of these issues and would also allow me to handle successfully submitted forms (which throw AbortException for redirect) and other signalsCurrent (bad) solution:
If you agree on proposed solution @dg I will write some tests for it.