Development Information

November 20, 2010

Mini MVC – Form Builder 1.0.5 → 1.0.6 → 1.0.7

Filed under: Updates — judda @ 1:24 pm

Version 1.0.6:

  • Fixed a minor inconsistency where the names and ids were being generated in different orders.

Version 1.0.7:

  • Changed the form’s value array so that it only contains checkboxes if the box has been checked (i.e. similar to the way that $_POST does it)
  • Validated the HTML being emitted

November 7, 2010

Mini MVC – Form Builder 1.0.4 → 1.0.5

Filed under: Updates — judda @ 5:54 pm

Small update:

  • Added a ‘value’ array to the form object so instead of accessing information through either the $_POST/$_GET array, you will grab it through $form -> value
  • Added getElementId function – takes in the field name you want the id of and returns the unique id which is generated for the field

October 30, 2010

Mini MVC – Form Builder 1.0.3 → 1.0.4

Filed under: Updates — judda @ 9:58 am
  • Added in a setValue function to the Form Builder Object in case you don’t know what the value is when you create the new element.
  • Updated the documentation

October 24, 2010

Mini MVC – Form Builder 1.0.2 → 1.0.3

Filed under: Mini MVC Information,Updates — judda @ 3:38 pm

After the previous update to the Form Builder, it was mentioned to me that the placing of each element in it’s own div was no longer required. This update removes those divs and just causes the straight HTML to be returned from the toHTML functions.

October 3, 2010

Mini MVC – Form Builder 1.0.1 → 1.0.2

Filed under: Mini MVC Information,Updates — judda @ 2:07 pm

After using the Form Builder, I realized that one part of how it was originally implemented made it extremely hard to use. This has now been fixed.

Instead of returning a string of the output from the actual object, the output is split into two sections:

  • FormBuilder::HTML – The HTML for the actual input element
  • FormBuilder::LABEL – If a label is present, the label part of the input field

Database Class 2.2.8 → 2.2.9

Filed under: Updates — judda @ 1:11 pm

Made the class valid with PHP Strict.

There used to be a binding issue when binding integers would throw a Strict error, this issue has been resolved.

September 5, 2010

MiniMVC v1.0.0 → v1.0.1 and Form Builder v1.0.0 → v1.0.1

Filed under: Mini MVC Information,Updates — judda @ 10:22 pm

Through use further use of MiniMVC and the Form Builder, I have noticed there were a few bugs in them.

MiniMVC the error handling wasn’t working correctly, so it has been fixed.

Form Builder was missing functions for setting CSS classes for the labels, so these (addLabelCSSClass, getLabelCSSClass) have been added in. These take the same parameters as the functions which are similar for the fields (addCSSClass, getCSSClass).

These updates are encouraged as they help to support the core functionality of the application.

August 22, 2010

Form Builder (Mini MVC)

Filed under: Mini MVC Information,Updates — judda @ 1:12 am

I have completed a preliminary version of a form builder. It will allow you to programmatically build forms which can be send in from the controllers to your views so that you never have to worry about different views handling the information in different ways (or changing names or anything).

I will be posting links to the documentation soon so that all of the built-in features will be displayed. Just because you are doing things programmatically doesn’t mean you can’t stylize nor have valid HTML. You can add as many attributes to the input types as you want (including specialized ones for adding CSS classes and styles).

Please Note: In this version of the form builder, arrays of fields are not permitted (i.e. they will overwrite each other). I am actively working to remove this limitation as soon as possible.

Along with the form builder, I have uploaded a small update to the Mini MVC base engine (just a little clean up thing).

July 13, 2010

Layout Manager Plugin (Mini MVC) 1.0.0 → 1.0.1

Filed under: Mini MVC Information,Updates — judda @ 12:54 am

Tiny update. Now the body can be pushed through the layout folder as well.

If you know that a file will never exist in the layouts folder, you can include LayoutManager::BYPASS => true in the array passed into each of the arrays for the __loadViews function and it will skip the extra searches.

July 5, 2010

Tiny Re-arrangement – Mini MVC

Filed under: Mini MVC Information,Updates — judda @ 10:20 pm

While implementing a new plugin, I realized that the original folder situation for the app/config/ folder would get awful messy fairly quickly. I have done a quick update just to rearrange the folder hierarchy to clean it up a little more.

Sorry for the inconvenience.

« Newer PostsOlder Posts »

Powered by WordPress