private static function _createUrlFromArray($params)
{
$prefixSystem = Config::getValue('global', 'prefix_system');
$controller = Arrays::getValue($params, 'controller');
$action = Arrays::getValue($params, 'action');
$extraParams = Arrays::getValue($params, 'extraParams');
if ($controller && $action) {
$url = Joiner::on('/')->join(array($prefixSystem, $controller, $action));
if ($extraParams) {
$url .= self::_mergeParams($extraParams);
}
return $url;
}
$string = Arrays::getValue($params, 'string');
if ($string) {
return $prefixSystem . $string;
}
throw new InvalidArgumentException('Illegal arguments');
}