public function __construct(HTML $html) { $this->html = $html; $this->url = $html->getUrlGenerator(); }
/** * Create a HTML button element. * * @param string $value * @param array $attributes * @return string */ public function button($value = null, $attributes = array()) { return '<button' . $this->html->attributes($attributes) . '>' . $this->html->entities($value) . '</button>'; }