Liquid Fire Posted May 1, 2008 Share Posted May 1, 2008 I pretty much have my first of my framework done(a few website at my work are using it) an what to just some information from some web developer on frameworks in general. I am not going to release the current version of the framework to the public, I am in the process of rewriting it for php 5.3 because the late static binding will clean up the framework a quite to be a lot easier to use(even tho i don't think it is terribly hard to use right now). One thing i would like to know if what things would you want a framework to automatically do and what thing would you not want a framework to automatically do. For example, my get_form_element in the base_model class will automatically add a <span class="field_required">*</span> to the beginning of the label for any required field and also add a class required to the form element itself. is this something useful or would you rather manage this yourself. Any information you would like to give on this matter would be great. On a side note, most stuff like that will be configurable to happen or not but by default it would be set to happen. Quote Link to comment Share on other sites More sharing options...
keeB Posted October 10, 2008 Share Posted October 10, 2008 For example, my get_form_element in the base_model class will automatically add a <span class="field_required">*</span> to the beginning of the label for any required field and also add a class required to the form element itself. This is something I would not like the framework to do automatically. I would prefer to be provided an extension point to implement Decorator's. An example of what a Decorator is can be found on Wikipedia here: http://en.wikipedia.org/wiki/Decorator_pattern Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.