Jump to content

Recommended Posts

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.

 

 

  • 5 months later...

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.