Quantcast
Channel: PHPDeveloper.org
Viewing all articles
Browse latest Browse all 10

Richard Thomas' Blog: Solar Framework Shorts - Controlling form layout

$
0
0

Richard Thomas has a new "Solar Short" posted to his blog to make life easier using the Solar Framework. This quick spotlight is about controlling the layout of the standard form renderer.

Solar's form system is pretty powerful and you realize the full beauty when auto generating forms directly from models but by default it uses a DL/DD/DT list for formatting your labels/inputs. If your not a fan of that formatting you can do something about it.

You can define the decorator tags in your framework's installation to replace the tags used for the list, element, label and the value output of the form. One of the comments on the post also suggests using the "decorateAsDiv" method the Solar_Form object provides to force the output into a div.


Viewing all articles
Browse latest Browse all 10

Trending Articles