/var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/me-tools/src/View/Helper
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/mirko-pagliai/me-tools/src/View/Helper/HtmlHelper.php (10943B)
tag($method, $params[0], $params[1] ?? []);
}
/**
* Creates a "badge"
* @param string $text Badge text
* @param array
$options Array of options and HTML attributes
* @return string
* @see https://getbootstrap.com/docs/5.3/components/badge/
*/
public function badge(string $text, array $options = []): string
{
$options = $this->addClass($options, 'badge');
return $this->tag('span', $text, $options);
}
/**
* Creates a link with the appearance of a button
* @param array|string $title The content to be wrapped by `` tags.
* Can be an array if $url is null. If $url is null, $title will be used as both the URL and title.
* @param array|string|null $url Cake-relative URL or array of URL parameters, or external URL (starts with http://)
* @param array $options Array of options and HTML attributes
* @return string An `` element
* @see link() for all available options
*/
public function button($title, $url = null, array $options = []): string
{
$options += ['role' => 'button'];
return $this->link($title, $url, $this->addButtonClasses($options));
}
/**
* Create an `