listErrors(); } return $validator->showError($params['field']); } //-------------------------------------------------------------------- /** * Wrap helper function to use as view plugin. * * @param array $params * * @return string|false */ public static function route(array $params = []) { return route_to(...$params); } //-------------------------------------------------------------------- /** * Wrap helper function to use as view plugin. * * @param array $params * * @return string */ public static function siteURL(array $params = []): string { return site_url(...$params); } }