code: private function renderButtons($rendered, $buttons)
      {
          foreach ($buttons as $button) {
              if (! isset($button['name'])) {
                  throw new ControlException("Button must have at least a name!");
              }
              $buttonType = isset($button['type']) ? $button['type'] : "submit";
              $id = isset($button['id']) ? $button['id'] : $button['name'];
              $class = isset($button['class']) ? $button['class'] : $button['name'];
              $label = isset($button['label']) ? $button['label'] : $button['name'];
              
              $rendered .= sprintf('<button type="%s" id="%s" class="%s" name="%s">%s</button>',
              		$buttonType, $id, $class, $button['name'], $label);
          }
          
          return $rendered;
      }
docs: Render the buttons elements
  
  @param string $rendered
  The rendered output
  @param array $buttons
  The list of buttons to render
  @throws ControlException
  
  @return string Rendered buttons appended to rendered output