芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/midiatech/vendor/slim/views/SmartyPlugins/function.urlFor.php
urlFor($name); if (isset($params['options'])) { switch (gettype($params['options'])) { case 'array': $opts = $params['options']; break; case 'string': $options = explode('|', $params['options']); foreach ($options as $option) { list($key, $value) = explode('.', $option); $opts[$key] = $value; } break; default: throw new \Exception('Options parameter is of unknown type, provide either string or array'); } $url = \Slim\Slim::getInstance($appName)->urlFor($name, $opts); } return $url; }