Changeset 31845
- Timestamp:
- 01/18/11 15:02:02 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfAlyssaJqGridPlugin/trunk/lib/widget/sfWidgetAlyssaJqGridLink.class.php
r29655 r31845 49 49 // options for render 50 50 $this->addOption('icon', 'ui-icon-document'); 51 $this->addOption('label', null);52 51 53 52 // # icon class as: ui-icon-value … … 77 76 public function render($name, $value = null, $attributes = array(), $errors = array()) 78 77 { 79 sfContext::getInstance()->getConfiguration()->loadHelpers(array('Url', 'Tag'));80 81 78 $name = $this->getOption('label') ? $this->getOption('label') : $name; 82 79 // add styles for a link button in jquery … … 84 81 $attributes['class'] = 'fg-button-mini fg-button ui-state-default fg-button-icon-left'; 85 82 86 return link_to($name, $this->getUri(), $attributes);83 return parent::render($name, $value, $attributes, $errors); 87 84 } 88 85