2 Oct 2004 09:50
nodes
The more I think about these recent Node discussions, the more I think
we are perhaps pushing the design in a wrong direction. I'm not only
referring to Manuel's suggestions, but to some of my own as well.
I think we should take some more steps back to re-examine the Node
concept and consider the following statement:
In regards to the issue of "modifying tree based on the processed result
of a child", the base problem exists only in Form. This illustrates a
flaw in the Form design I think.
My reasons at this point are 2 fold.
1. I don't think Node was ever intended to act as a full controller.
Alex agrees with me that the ability to explicitely manipulate node
trees within Nodes is a good thing, but we do not seem to be going this
route.
2. I think Form can be re-designed better. If you look at Form and
FormInput, there is alot of duplicity happening. I think we should move
all logic back up the tree, giving all control to Form.php.
This would allow Form.php to do:
foreach child
if child value exists in request
child->state = submitted
if child value is valid
child->state = complete
(Continue reading)
RSS Feed