function.crmResURL.php
Tags
Table of Contents
Functions
- smarty_function_crmResURL() : string
- Determine the URL of a resource file
Functions
smarty_function_crmResURL()
Determine the URL of a resource file
smarty_function_crmResURL(array<string|int, mixed> $params, CRM_Core_Smarty &$smarty) : string
Parameters
- $params : array<string|int, mixed>
-
Identify the resource by either 'ext'+'file' or 'expr'.
Array with keys:
- ext: string, extension name. see CRM_Core_Resources::getUrl
- file: string, relative file path. see CRM_Core_Resources::getUrl
- expr: string, a dynamic path expression. See: \Civi\Core\Paths::getUrl()
- $smarty : CRM_Core_Smarty