NAMESPACE: Bootstrap/Views

Views/ViewGetters.php

uses

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

Deprecated: Function create_function() is deprecated in /var/www/docs.appzio.com/public/wp-content/plugins/wp-gfm/markdown.php on line 301

Deprecated: Function create_function() is deprecated in /var/www/docs.appzio.com/public/wp-content/plugins/wp-gfm/markdown.php on line 302

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