getParams(); $routerName = strtolower($class->getRouteType()); $html = ''; foreach ($inputParams as $key => $param) { $escapedParam = smarty_modifier_escape($routerParams[$key]); $inputKey = $routerName . '_' . $key; switch ($param['type']) { case 'text': $input = ''; break; case 'select': $input = ''; break; } $required = ! empty($param['required']) ? ' *' : ''; $infoHtml = ''; if (! empty($param['description'])) { $description = smarty_modifier_escape($param['description']); $icon = smarty_function_icon(['name' => 'information'], $smarty); $infoHtml = << {$icon} HTML; } $html .= <<
{$input} {$infoHtml}
HTML; } echo $html; }