Ejemplo n.º 1
0
 protected function _renderAttributes(FormElement $element, array $custom = null)
 {
     $attributes = ["name" => $element->getOption('name'), "id" => $element->getOption('id')];
     $attributes = array_merge($attributes, (array) $custom, (array) $element->getAttributes());
     $return = '';
     foreach ($attributes as $k => $v) {
         $return .= $v === null ? " {$k}" : " {$k}=\"{$v}\"";
     }
     return $return;
 }