Пример #1
0
 public function __construct(HTML $html)
 {
     $this->html = $html;
     $this->url = $html->getUrlGenerator();
 }
Пример #2
0
 /**
  * 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>';
 }