\Dewdrop\Fields\HelperEditControl

This helper manages the rendering of edit controls for fields. It composes a helper for the control itself and a helper for its label. These helpers have access to a View object, so they can use view helpers for their control rendering.

You can customize the rendering of a control for a field by writing a custom callback like this:

$helper->getControlRenderer()->assign(
    $field,
    function ($helper, $view, $fieldPosition) use ($field) {
        return $view->inputText($field);
    }
);

Summary

Methods
Properties
Constants
__construct()
getControlRenderer()
getLabelRenderer()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$controlRenderer
$labelRenderer
$view
N/A

Properties

$view

$view : \Dewdrop\View\View

The View into which the control will be rendered.

Type

\Dewdrop\View\View

Methods

__construct()

__construct(\Dewdrop\View\View  $view) 

Provide the View into which the HTML will be rendered and create the Control and Label renderers.

Parameters

\Dewdrop\View\View $view