crmResURL, crmResPath - Allow full path expressions
authorTim Otten <totten@civicrm.org>
Thu, 16 Jan 2020 09:21:20 +0000 (01:21 -0800)
committerTim Otten <totten@civicrm.org>
Tue, 28 Jan 2020 23:14:28 +0000 (15:14 -0800)
commit502492c2bcad65c4a1e77f9a2b9595844a39dcb4
treedf92055d7a505f1787b10d4983e244de6dcf923e
parent4d5b93c3343c75c9881a7b1193ffbf33b1e6439a
crmResURL, crmResPath - Allow full path expressions

Before
------

In Smarty, there is no way to request values from `Civi::paths()`.

After
-----

In Smarty, you can request values from `Civi::paths()` using these notations:

```
{crmResURL expr="[civicrm.root]/foo"}
{crmResPath expr="[civicrm.root]/foo"}
```
CRM/Core/Smarty/plugins/function.crmResPath.php
CRM/Core/Smarty/plugins/function.crmResURL.php
tests/phpunit/CRM/Core/ResourcesTest.php