mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-10-29 10:24:12 +01:00
20 lines
321 B
PHP
20 lines
321 B
PHP
<?php
|
|
|
|
namespace Icinga\Web\View;
|
|
|
|
use Icinga\Web\Url;
|
|
|
|
function url($path = null, $params = null)
|
|
{
|
|
if ($path === null) {
|
|
$url = Url::current();
|
|
if ($params !== null) {
|
|
$url->setParams($params);
|
|
}
|
|
} else {
|
|
$url = Url::create($path, $params);
|
|
}
|
|
return $url;
|
|
}
|
|
|