[dev] custom form renderer functions

Marko Djukic mdjukic at horde.org
Wed Dec 10 02:36:07 PST 2003


slight problem with the new UI/VarRenderer.php and custom rendering functions.

ie: if an app has it's own implementation of a specific variable how it is
rendered, before all the rendering functions were in Form/Renderer.php, so if
you wanted to add your own rendering types, you just extended Renderer.php and
set up the renderer object with &new MyRenderer(). now it's Renderer.php which
by default calls UI/VarRenderer.php to get the rendering functions.
so creating a custom class that extends Form/Renderer.php (like before) doesn't
work now because it doesn't even look inside this class for the functions.
extending UI/VarRenderer.php doesn't work either because by default it picks up
the one in framework.

how about having a param that the factory method accepts to specify the extended
UI/VarRenderer object to use?

m.


More information about the dev mailing list