Skip to content
Petr Cech edited this page Feb 12, 2018 · 3 revisions

bootstrap-4-forms wiki

You probably came here to learn how to customize this library or you read technical documentation for fun... I strongly suggest you read the What does what section below

Contents:

What does what

This should clarify which parts are rendered by which part of the library. A common mistake to make is to presume that the renderer renders everything. That is not true.

  • Each control provides a functioning HTML control on itself
  • Renderer then takes those controls and arranges them according to the render mode into some wrappers, but rarely touches the controls themselves.

Why is that?

When the rule above is used, you can safely use manual rendering, because if you take the latte macros in a template such as:

{form myForm}
    <div>{label name}</div>
    <div>{input name}</div>
{/form}

Then the renderer is not used at all, instead $control->getControl() or $control->getLabel() will be used.

Clone this wiki locally