public static view ( string $view, array | null $data = null, boolean | integer | array $expires = false, string $cache_mode = 'cache' ) : boolean | mixed | null | string | void | ||
$view | string | Path of the view file |
$data | array | null | (optional) Data to pass on to the template |
$expires | boolean | integer | array | (optional) Time in seconds for the cache to expire, if 0 no expiration. |
$cache_mode | string | (optional) Decides the caching method to use for the view. |
return | boolean | mixed | null | string | void |