28 function smarty_modifier_translate_path($path, $base, $strict=
false) {
29 if (strlen($path) > 0) {
30 $urls = URIUtil::translate($path, $base);
31 return FileUtil::fileExists($urls[
'relative']) || !$strict ? $urls[
'relative'] :
null;
URIUtil provides support for uri manipulation.
FileUtil provides basic support for file functionality like HTTP file upload.