Example #1
0
 /**
  * Render the submit button for this action.
  *
  * @param View $view
  * @return string
  */
 public function render(View $view)
 {
     foreach ($this->stylesheets as $stylesheet) {
         $view->headLink()->appendStylesheet($stylesheet);
     }
     foreach ($this->scriptFiles as $file) {
         $view->headScript()->appendFile($file);
     }
     return sprintf('<input id="%s" name="%s" type="submit" class="%s" value="%s" />', $view->escapeHtmlAttr($this->id), $view->escapeHtmlAttr($this->id), $view->escapeHtmlAttr($this->buttonClassName), $view->escapeHtmlAttr($this->buttonTitle));
 }