function.crmResPath.php
Tags
Table of Contents
Functions
- smarty_function_crmResPath() : string
- Determine the path of a resource file
Functions
smarty_function_crmResPath()
Determine the path of a resource file
smarty_function_crmResPath(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::getPath
- file: string, relative file path. see CRM_Core_Resources::getPath
- expr: string, a dynamic path expression. See: \Civi\Core\Paths::getPath()
- $smarty : CRM_Core_Smarty