projects
/
pharext
/
pharext.org
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
bootstrap: add uri_template fallback
[pharext/pharext.org]
/
app
/
bootstrap
/
uri_template.php
diff --git a/app/bootstrap/uri_template.php
b/app/bootstrap/uri_template.php
new file mode 100644
(file)
index 0000000..
d980670
--- /dev/null
+++ b/
app/bootstrap/uri_template.php
@@ -0,0
+1,8
@@
+<?php
+
+if (!function_exists("uri_template")) {
+ function uri_template($str, $arr) {
+ $tpl = new Rize\UriTemplate;
+ return $tpl->expand($str, $arr);
+ }
+}