NAMESPACE: Bootstrap/Views

Views/ViewGetters.php

uses

is_numeric
public function getData($field,$type,$required)

Data passed from the controller is availble to views and components through this function. Notice that data passed from controller should be typed. This will ease debugging and reduce type related errors. Types are: array, bool, int, num, string, float, object or mixed.

parameters

$required param bool $required if this is set to true, an empty value will display an erorr on the client

variable

$field
$type
$required