Documentation

BaseField
in package

AbstractYes

Base class for form fields

Table of Contents

Properties

$attribute  : string
$model  : Model
$type  : string

Methods

__construct()  : mixed
Field constructor.
__toString()  : string
Returns the HTML representation of the field including label, input and error message.
renderInput()  : string
Render the input field.

Properties

Methods

__construct()

Field constructor.

public __construct(Model $model, string $attribute) : mixed
Parameters
$model : Model
$attribute : string

__toString()

Returns the HTML representation of the field including label, input and error message.

public __toString() : string
Return values
string

renderInput()

Render the input field.

public abstract renderInput() : string
Return values
string
On this page

Search results