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
$attribute
public
string
$attribute
$model
public
Model
$model
$type
public
string
$type
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
stringrenderInput()
Render the input field.
public
abstract renderInput() : string