Example #1
0
 /**
  * Renders a HTML tag.
  *
  * The id attribute is added automatically to the array of attributes if none is specified.
  * If uses for "id_format" option to generate the id.
  *
  * @param  string $tag        The tag name
  * @param  array  $attributes An array of HTML attributes to be merged with the default HTML attributes
  *
  * @return string An HTML tag string
  */
 public function renderTag($tag, $attributes = array())
 {
     if (empty($tag)) {
         return '';
     }
     $attributes = $this->fixFormId($attributes);
     return parent::renderTag($tag, $attributes);
 }
 /**
  * Renders a HTML tag.
  *
  * The id attribute is added automatically to the array of attributes if none is specified.
  * If uses for "id_format" option to generate the id.
  *
  * @param  string The tag name
  * @param  array  An array of HTML attributes to be merged with the default HTML attributes
  *
  * @return string An HTML tag string
  */
 public function renderTag($tag, $attributes = array())
 {
     return parent::renderTag($tag, $this->fixFormId($attributes));
 }