NAMESPACE: Bootstrap/Views
Views/ViewGetters.php
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.
$required | param bool $required if this is set to true, an empty value will display an erorr on the client |
$field |
$type |
$required |