/** * Initializes the widget. * This method is called by {@link CBaseController::createWidget} * and {@link CBaseController::beginWidget} after the widget's * properties have been initialized. */ public function init() { parent::init(); usort($this->data, array($this, "compare")); $this->_defaultHtmlOptions = array('id' => $this->getId()); }
/** * Initializes the widget. * This method is called by {@link CBaseController::createWidget} * and {@link CBaseController::beginWidget} after the widget's * properties have been initialized. */ public function init() { parent::init(); $this->_defaultHtmlOptions = array('id' => $this->getId()); }