/** * Runs the widget. * This registers the necessary javascript code and renders the form close tag. */ public function run() { foreach ($this->_summaryAttributes as $attribute) { $this->attributes[$attribute]['summary'] = true; } $options['attributes'] = array_values($this->attributes); parent::run(); }
/** * Runs the widget. */ public function run() { $templates = array(); foreach ($this->model->getTemplates() as $i => $template) { $templates[$i] = basename($template) . ' (' . $template . ')'; } $this->renderFile(Yii::getPathOfAlias('gii.views.common.generator') . '.php', array('model' => $this->model, 'templates' => $templates)); parent::run(); echo "</div>"; }
public function run() { parent::run(); if (Yii::app()->request->isAjaxRequest && !empty($_POST['ajaxReturn'])) { $id = "#" . $this->htmlOptions['id']; $ajaxReturn = $_POST['ajaxReturn']; $js = "\$( '{$id}' ).submit( function(){ \$(this).formSubmit( {$ajaxReturn} ); return false; });"; Yii::app()->clientScript->registerScript('form' . $id, $js, CClientScript::POS_END); } }
/** * Execute the widget. * * @access public * @return void */ public function run() { parent::run(); }
/** * Runs the widget. * Don't render the close tag */ public function run() { ob_start(); parent::run(); ob_get_clean(); }
/** * Runs the widget. * This registers the necessary javascript code and renders the form close tag. */ public function run() { /* todo: override this parent's method in order to register our own js */ parent::run(); }